From 3090989dea3b456b3fe5895e4257a7d457250bee Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 9 Oct 2020 00:37:28 +0200 Subject: [PATCH] Fixed accounts editor for OTServ, which dont have accounts.group_id --- system/pages/admin/accounts.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/pages/admin/accounts.php b/system/pages/admin/accounts.php index a9e2c3da..ded959c9 100644 --- a/system/pages/admin/accounts.php +++ b/system/pages/admin/accounts.php @@ -204,7 +204,7 @@ else if (isset($_REQUEST['search'])) { } } } else if ($id == 0) { - $accounts_db = $db->query('SELECT `id`, `name`,' . ($hasTypeColumn ? 'type' : 'group_id') . ' FROM `accounts` ORDER BY `id` ASC'); + $accounts_db = $db->query('SELECT `id`, `name`' . ($hasTypeColumn ? ',type' : ($hasGroupColumn ? ',group_id' : '')) . ' FROM `accounts` ORDER BY `id` ASC'); ?>
@@ -217,7 +217,9 @@ else if (isset($_REQUEST['search'])) { ID Name + Position + Edit @@ -226,6 +228,7 @@ else if (isset($_REQUEST['search'])) { + +