diff options
Diffstat (limited to 'web/html')
-rw-r--r-- | web/html/account.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/account.php b/web/html/account.php index 0975ab7c..d911f933 100644 --- a/web/html/account.php +++ b/web/html/account.php @@ -40,7 +40,7 @@ if (isset($_COOKIE["AURSID"])) { $q.= "WHERE AccountTypes.ID = Users.AccountTypeID "; $q.= "AND Users.ID = ".intval($_REQUEST["ID"]); $result = db_query($q, $dbh); - if (!$result) { + if (!mysql_num_rows($result)) { print __("Could not retrieve information for the specified user."); } else { @@ -87,7 +87,7 @@ if (isset($_COOKIE["AURSID"])) { $q.= "AND Sessions.SessionID = '"; $q.= mysql_escape_string($_COOKIE["AURSID"])."'"; $result = db_query($q, $dbh); - if (!$result) { + if (!mysql_num_rows($result)) { print __("Could not retrieve information for the specified user."); } else { |