From c1854515c765eb446d52faca46b8504f6861aa79 Mon Sep 17 00:00:00 2001 From: Matteo Bilotta Date: Tue, 28 Sep 2021 21:34:32 +0200 Subject: [PATCH] [FIX] Solved a SQL syntax problem while using the latest MariaDB version. --- application/models/User_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/User_model.php b/application/models/User_model.php index ab368d511..9c0d9732d 100644 --- a/application/models/User_model.php +++ b/application/models/User_model.php @@ -362,7 +362,7 @@ class User_Model extends CI_Model { // FUNCTION: array timezones() // Returns a list of timezones function timezones() { - $r = $this->db->query('SELECT id, name FROM timezones ORDER BY offset'); + $r = $this->db->query('SELECT id, name FROM timezones ORDER BY `offset`'); $ts = array(); foreach ($r->result_array() as $t) { $ts[$t['id']] = $t['name'];