summaryrefslogtreecommitdiffstats
path: root/web/html/account.php
diff options
context:
space:
mode:
authorsimo <simo>2005-04-23 18:48:37 +0200
committersimo <simo>2005-04-23 18:48:37 +0200
commitf6ea024640f557feb3dca2dd3b2bf65b97b08e89 (patch)
tree8b68233a9b7ba338bf474c5c6c761748fb702330 /web/html/account.php
parent07249c0fd985532180e8f412289d2c9e7fa3f4b3 (diff)
downloadaur-f6ea024640f557feb3dca2dd3b2bf65b97b08e89.tar.gz
aur-f6ea024640f557feb3dca2dd3b2bf65b97b08e89.tar.xz
Fix user existence checks; whacks bug#2585
Diffstat (limited to 'web/html/account.php')
-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 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 {