From 5df8a2c64b09f84e8755ae95ee27a6122617ca7d Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Wed, 3 Apr 2013 22:59:20 +0000 Subject: [PATCH] Remove use of group concat for timezones as is character limited --- admin/operatorlist.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/admin/operatorlist.php b/admin/operatorlist.php index b49d2847..9af92796 100644 --- a/admin/operatorlist.php +++ b/admin/operatorlist.php @@ -101,14 +101,17 @@ if (isset($_GET['edit'])) $operator_id = intval($_GET['edit']); - $sql = "SELECT *, - CONCAT('') as timezone + $sql = "SELECT * FROM operator WHERE operator_id = $operator_id"; $rs = $db->GetRow($sql); + $sql = "SELECT Time_zone_name as value, Time_zone_name as description + FROM timezone_template"; + + $tz = $db->GetAll($sql); + print "

" . T_("Edit") . ": " . $rs['username'] . "

"; echo "

" . T_("Go back") . "

"; if (!empty($msg)) print "

$msg

"; @@ -126,7 +129,7 @@ if (isset($_GET['edit']))
-
+
value="1" />
value="1" />