From d8d36d6f4beaa01263f781997ef475158c87f349 Mon Sep 17 00:00:00 2001 From: canyonknight Date: Thu, 28 Jun 2012 20:56:58 -0400 Subject: acctfuncs.inc.php: Make user_is_privileged() work Signed-off-by: canyonknight Signed-off-by: Lukas Fleischer --- web/lib/acctfuncs.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/lib/acctfuncs.inc.php') diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index fccbb7a..0cb4d72 100644 --- a/web/lib/acctfuncs.inc.php +++ b/web/lib/acctfuncs.inc.php @@ -725,8 +725,8 @@ function user_is_privileged($id, $dbh=NULL) { $result = db_query($q, $dbh); if ($result) { $row = mysql_fetch_row($result); - if( $result[0] > 1) { - return $result[0]; + if($row[0] > 1) { + return $row[0]; } } return 0; -- cgit v1.2.3-70-g09d2