From 723adabe8ff2678abd1fa04350f60ee5e2b83461 Mon Sep 17 00:00:00 2001 From: phl0 Date: Sun, 27 Mar 2022 12:17:35 +0200 Subject: [PATCH] Remove regex (to be compatible with earlier mySQL) --- application/models/Activators_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Activators_model.php b/application/models/Activators_model.php index 283b00b8..981691e5 100644 --- a/application/models/Activators_model.php +++ b/application/models/Activators_model.php @@ -61,7 +61,7 @@ class Activators_model extends CI_Model $location_list = "'".implode("','",$logbooks_locations_array)."'"; - $sql = "SELECT DISTINCT COL_CALL AS `call`, GROUP_CONCAT(REGEXP_REPLACE(COL_VUCC_GRIDS, '([A-Z]{2}[0-9]{2})[A-Z]{2}', '$1')) AS `vucc_grids` FROM ".$this->config->item('table_name')." WHERE station_id in (" . $location_list . ")"; + $sql = "SELECT DISTINCT COL_CALL AS `call`, GROUP_CONCAT(COL_VUCC_GRIDS) AS `vucc_grids` FROM ".$this->config->item('table_name')." WHERE station_id in (" . $location_list . ")"; if ($band != 'All') { if ($band == 'SAT') { switch ($leogeo) {