summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2012-06-29 02:56:58 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-06 11:27:11 +0200
commitd8d36d6f4beaa01263f781997ef475158c87f349 (patch)
tree75aa207bda68f0c47d98a10b1e4ab1d657839d83 /web
parent445932d8e83df3102102dc57fe328fba00d66157 (diff)
downloadaur-d8d36d6f4beaa01263f781997ef475158c87f349.tar.gz
aur-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')
-rw-r--r--web/lib/acctfuncs.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php
index fccbb7a4..0cb4d727 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;