diff options
author | canyonknight <canyonknight@gmail.com> | 2012-06-28 20:56:58 -0400 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-07-06 11:27:11 +0200 |
commit | d8d36d6f4beaa01263f781997ef475158c87f349 (patch) | |
tree | 75aa207bda68f0c47d98a10b1e4ab1d657839d83 /web/lib | |
parent | 445932d8e83df3102102dc57fe328fba00d66157 (diff) | |
download | aurweb-d8d36d6f4beaa01263f781997ef475158c87f349.tar.xz |
acctfuncs.inc.php: Make user_is_privileged() work
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.php | 4 |
1 files changed, 2 insertions, 2 deletions
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; |