From c75644e7291c8dfd1ebfb04ea65048d88150e32d Mon Sep 17 00:00:00 2001 From: hecht Date: Sat, 7 Jan 2012 13:21:01 +0000 Subject: [PATCH] this did't work --- ag/include/arena.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ag/include/arena.inc.php b/ag/include/arena.inc.php index a3d3282..77549b8 100644 --- a/ag/include/arena.inc.php +++ b/ag/include/arena.inc.php @@ -57,12 +57,12 @@ function calculateRenovierungsKosten($arena){ } function getArena($user_id) { - $sql = 'SELECT * FROM arena where besitzer = \''.$user_id.'\''; - $qry = mysql_query($sql); + $sql_select = 'SELECT * FROM arena where besitzer = \''.$user_id.'\''; + $qry = mysql_query($sql_select); if(mysql_num_rows($qry) == 0) { $sql = 'INSERT arena(besitzer, exp) values (\''.$user_id.'\', \'0,'.calculateRequiredExpArena(1).'\')'; mysql_query($sql); - $qry = mysql_query($sql); + $qry = mysql_query($sql_select); } $arena = mysql_fetch_assoc($qry); return $arena;