summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2012-07-14 19:32:02 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-14 22:18:58 +0200
commit50e97446bbcc605768811fee387efe724b84e042 (patch)
treee5a9a3523e10230876dad19c53d9a2c1432523b6 /web/lib
parent2c93f0a98f0f6380fd07ea17fd16afa2c6e4925b (diff)
downloadaur-50e97446bbcc605768811fee387efe724b84e042.tar.gz
aur-50e97446bbcc605768811fee387efe724b84e042.tar.xz
acctfuncs.inc.php: Make user_suspended() work correctly
Fixes broken account suspension system. Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/acctfuncs.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php
index 51078b8f..b7c3ee8f 100644
--- a/web/lib/acctfuncs.inc.php
+++ b/web/lib/acctfuncs.inc.php
@@ -795,7 +795,7 @@ function user_suspended( $id )
$result = db_query($q, $dbh);
if ($result) {
$row = mysql_fetch_row($result);
- if ($result[0] == 1 ) {
+ if ($row[0]) {
return true;
}
}