From d7333b3f218ab605c1f21c033ba5f140aaea068b Mon Sep 17 00:00:00 2001 From: Lee <42119604+Leesneaks@users.noreply.github.com> Date: Mon, 6 Apr 2020 15:08:52 +0100 Subject: [PATCH] Update accounts.php Fix for accounts.php type not found. --- system/pages/admin/accounts.php | 36 ++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/system/pages/admin/accounts.php b/system/pages/admin/accounts.php index 724e382d..a9e2c3da 100644 --- a/system/pages/admin/accounts.php +++ b/system/pages/admin/accounts.php @@ -31,7 +31,7 @@ if ($config['account_country']) { $countries[$code] = $c; } $web_acc = array("None", "Admin", "Super Admin", "(Admin + Super Admin)"); -$acc_type = array("Normal", "Tutor", "Senior Tutor", "Gamemaster", "God"); +$acc_type = array("None", "Normal", "Tutor", "Senior Tutor", "Gamemaster", "God"); ?> @@ -204,7 +204,7 @@ else if (isset($_REQUEST['search'])) { } } } else if ($id == 0) { - $accounts_db = $db->query('SELECT `id`, `name`,`type` FROM `accounts` ORDER BY `id` ASC'); + $accounts_db = $db->query('SELECT `id`, `name`,' . ($hasTypeColumn ? 'type' : 'group_id') . ' FROM `accounts` ORDER BY `id` ASC'); ?>
-
+
|