summaryrefslogtreecommitdiff
path: root/web/lib
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2012-07-14 13:32:02 -0400
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-14 22:18:58 +0200
commit50e97446bbcc605768811fee387efe724b84e042 (patch)
treee5a9a3523e10230876dad19c53d9a2c1432523b6 /web/lib
parent2c93f0a98f0f6380fd07ea17fd16afa2c6e4925b (diff)
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 51078b8..b7c3ee8 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;
}
}