diff options
Diffstat (limited to 'admin/admins/functions.php')
-rw-r--r-- | admin/admins/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/admins/functions.php b/admin/admins/functions.php index 563b507..6cda0c4 100644 --- a/admin/admins/functions.php +++ b/admin/admins/functions.php @@ -252,8 +252,8 @@ }
$result = $db->Query("SELECT * FROM `bayonet_users` WHERE `user_id` = '$user_id' LIMIT 1");
- $admin = $db->fetch($result);
-
+ $admin = $db->FetchRow($result);
+
if($maxLevel < $admin['level']){
ReportError("You do not have permission to access this user.");
return;
|