acctfuncs.inc.php: Make user_is_privileged() work

Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
canyonknight 2012-06-28 20:56:58 -04:00 committed by Lukas Fleischer
parent 445932d8e8
commit d8d36d6f4b

View file

@ -725,8 +725,8 @@ function user_is_privileged($id, $dbh=NULL) {
$result = db_query($q, $dbh); $result = db_query($q, $dbh);
if ($result) { if ($result) {
$row = mysql_fetch_row($result); $row = mysql_fetch_row($result);
if( $result[0] > 1) { if($row[0] > 1) {
return $result[0]; return $row[0];
} }
} }
return 0; return 0;