diff options
Diffstat (limited to 'frontends/php/include/db.inc.php')
| -rw-r--r-- | frontends/php/include/db.inc.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/frontends/php/include/db.inc.php b/frontends/php/include/db.inc.php index d1c1cf42..df6d7b98 100644 --- a/frontends/php/include/db.inc.php +++ b/frontends/php/include/db.inc.php @@ -151,6 +151,8 @@ { global $DB_TYPE; + if(!$result) return 0; + if($DB_TYPE == "MYSQL") { return mysql_num_rows($result); |
