From f6ea024640f557feb3dca2dd3b2bf65b97b08e89 Mon Sep 17 00:00:00 2001 From: simo Date: Sat, 23 Apr 2005 16:48:37 +0000 Subject: Fix user existence checks; whacks bug#2585 --- web/html/account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/html/account.php') diff --git a/web/html/account.php b/web/html/account.php index 0975ab7..d911f93 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 { -- cgit v1.2.3-54-g00ecf