diff options
author | matthiasgrimm <matthiasgrimm@users.sourceforge.net> | 2006-05-22 18:23:27 +0200 |
---|---|---|
committer | matthiasgrimm <matthiasgrimm@users.sourceforge.net> | 2006-05-22 18:23:27 +0200 |
commit | adae72850152a629ba9ad0a572fe3e445f23ce13 (patch) | |
tree | 1c8ac90dc16dd0fde2e187456587c13fdcbfd6d2 | |
parent | ee379fa41555e1c9742634229b3fab8a1fbd7fd6 (diff) | |
download | rpg-adae72850152a629ba9ad0a572fe3e445f23ce13.tar.gz rpg-adae72850152a629ba9ad0a572fe3e445f23ce13.tar.bz2 |
MySQL Bug - PHP warning if query result is empty
If a database query has no result, the returned array is not
valid. This caused a PHP warning in the user manager if the
filter is set in a way that the result list is empty.
darcs-hash:20060522162327-7ef76-d8fa89a047a9a159b600f11ccb189e845b2a5b8f.gz
-rw-r--r-- | inc/auth/mysql.class.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/auth/mysql.class.php b/inc/auth/mysql.class.php index 849d48646..71788f57d 100644 --- a/inc/auth/mysql.class.php +++ b/inc/auth/mysql.class.php @@ -756,6 +756,7 @@ class auth_mysql extends auth_basic { * @author Matthias Grimm <matthiasgrimm@users.sourceforge.net> */ function _queryDB($query) { + $resultarray = array(); if ($this->dbcon) { $result = @mysql_query($query,$this->dbcon); if ($result) { |