summaryrefslogtreecommitdiff
path: root/web/html
diff options
context:
space:
mode:
authorsimo <simo>2005-04-23 16:48:37 +0000
committersimo <simo>2005-04-23 16:48:37 +0000
commitf6ea024640f557feb3dca2dd3b2bf65b97b08e89 (patch)
tree8b68233a9b7ba338bf474c5c6c761748fb702330 /web/html
parent07249c0fd985532180e8f412289d2c9e7fa3f4b3 (diff)
Fix user existence checks; whacks bug#2585
Diffstat (limited to 'web/html')
-rw-r--r--web/html/account.php4
1 files changed, 2 insertions, 2 deletions
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 {