From 5392bc422c4f5df2b5e185ddc2bc2221a12ea3f7 Mon Sep 17 00:00:00 2001 From: Ziver Koc Date: Fri, 28 Nov 2008 22:08:14 +0000 Subject: [PATCH] fixed a bugg --- db.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/db.php b/db.php index d3e4565..3fbfc9a 100644 --- a/db.php +++ b/db.php @@ -59,8 +59,10 @@ trigger_error("QUERY FAILD: \"".$sqlSats."\"", E_USER_ERROR); die(); } - $temp = @mysql_fetch_assoc($resultat); - return $temp; + if(is_bool($resultat)) + return $resultat; + else + return @mysql_fetch_assoc($resultat); } ?> \ No newline at end of file