diff options
author | jhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6> | 2009-12-27 19:21:11 -0500 |
---|---|---|
committer | jhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6> | 2009-12-27 19:21:11 -0500 |
commit | ed943b32335933f369d9aa459689e986c10421ae (patch) | |
tree | 0c862c0f28308dc95e2e382a64a9d3e4bf51cca9 /admin/admins | |
parent | d526decc4884710ae7fafe7aa5171e7f59b24292 (diff) | |
download | bayonetcms-ed943b32335933f369d9aa459689e986c10421ae.tar.gz |
(OC) fixed some bugs in the admin panel caused by the new sql wrapper. *need to figure out the avatar for smflogin block.
git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@403 c5b2fb0a-d05d-0410-98c8-828840a80ff6
Diffstat (limited to 'admin/admins')
-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;
|