From 50e97446bbcc605768811fee387efe724b84e042 Mon Sep 17 00:00:00 2001 From: canyonknight Date: Sat, 14 Jul 2012 13:32:02 -0400 Subject: acctfuncs.inc.php: Make user_suspended() work correctly Fixes broken account suspension system. Signed-off-by: canyonknight Signed-off-by: Lukas Fleischer --- web/lib/acctfuncs.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.3-70-g09d2