From feb97b4ddfdab8fdc19c061e2293a398aedcada1 Mon Sep 17 00:00:00 2001 From: darkalchemy Date: Thu, 11 Oct 2018 19:48:24 -0400 Subject: [PATCH] fix: site_settings.php --- CHANGELOG | 3 +++ include/site_settings.php | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index cfd710377..e756aea1c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +11 Oct, 2018 +fix: site_settings.php + 10 Oct, 2018 fix: announce.php diff --git a/include/site_settings.php b/include/site_settings.php index b7578d4d6..71da8a83b 100644 --- a/include/site_settings.php +++ b/include/site_settings.php @@ -45,7 +45,8 @@ $sql = $fluent->from('users') ->select(null) ->select('id') - ->where('class BETWEEN ? AND ?', UC_STAFF, UC_MAX) + ->where('class >= ?', UC_STAFF) + ->where('class <= ?', UC_MAX) ->orderBy('id ASC'); foreach ($sql as $res) { $staff_settings['is_staff']['allowed'][] = $res['id'];