From 941475b094f1f3efe11f5fb30302763f12b03fd9 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Sat, 7 Oct 2017 16:13:26 +0200 Subject: [PATCH] fixing an error message shown when browsing as a subadmin --- bureau/class/m_admin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bureau/class/m_admin.php b/bureau/class/m_admin.php index f5eaa50c..44d52270 100644 --- a/bureau/class/m_admin.php +++ b/bureau/class/m_admin.php @@ -103,7 +103,7 @@ class m_admin { ) ); - if ($cuid == 2000) { + if ($cuid == 2000) { // only ADMIN, not available to subadmins $obj['links'][] = array( 'txt' => _("Admin Control Panel"), 'url' => 'adm_panel.php', @@ -466,7 +466,7 @@ class m_admin { $creators = array(); $msg->log("admin", "get_reseller_list"); - if (!$this->enabled || $cuid != 2000) { + if (!$this->enabled) { $msg->raise("ERROR", "admin", _("-- Only administrators can access this page! --")); return false; } @@ -1371,7 +1371,7 @@ class m_admin { */ function getadmin() { global $db; - $db->query("SELECT login FROM membres WHERE uid = '2000';"); + $db->query("SELECT login FROM membres WHERE uid=2000;"); $db->next_record(); return $db->f("login"); }