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