From cfb43c0e86faa88daedc857b323d5d2b67ef29d8 Mon Sep 17 00:00:00 2001 From: Ziver Koc Date: Tue, 9 Dec 2008 09:31:05 +0000 Subject: [PATCH] bug fix --- db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.php b/db.php index 3fbfc9a..1a4394e 100644 --- a/db.php +++ b/db.php @@ -59,7 +59,7 @@ trigger_error("QUERY FAILD: \"".$sqlSats."\"", E_USER_ERROR); die(); } - if(is_bool($resultat)) + if(is_bool($resultat) || is_int($resultat)) return $resultat; else return @mysql_fetch_assoc($resultat);