From cf39e6dd34c36f627ae8f71c0dddd885f9980d1a Mon Sep 17 00:00:00 2001 From: hecht Date: Fri, 22 Aug 2014 08:46:12 +0000 Subject: [PATCH] Fixed: Fataler bug der die geheim-auktion crashde --- cronjob/viertelstunde.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cronjob/viertelstunde.php b/cronjob/viertelstunde.php index 528c51b..1497388 100644 --- a/cronjob/viertelstunde.php +++ b/cronjob/viertelstunde.php @@ -146,10 +146,10 @@ function insertAuktionen(){ for($t = 0; $t<$anzahl_auktions_items; $t++) { if(mt_rand(1,100) <= $chance_niete) { - $item_table = 'sp_item'; + $item_table = 'sp_ware'; $item_id = $nieten_id; } else { - $item_table = 'wochen_markt'; + $item_table = 'wochen_ware'; $item_id = $frucht[mt_rand(0,$fruchtcount-1)]; } $test = 'INSERT INTO auktion (itemid, itemname, tablename, anbieter, anzahl, deadline, startgebot, startdate) VALUES('.$item_id.',\'Geheim!\',\''.$item_table.'\',1,1,'.$deadline.','.$startgebot.','.$start.')';