From 6b4a71b3ab2b67a555392ed8a75ccf0bc9e408c9 Mon Sep 17 00:00:00 2001 From: phl0 Date: Thu, 29 Aug 2024 20:08:29 +0200 Subject: [PATCH] Replace hard coded table name --- application/models/Distancerecords_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Distancerecords_model.php b/application/models/Distancerecords_model.php index a2db0881e..248ac72a7 100644 --- a/application/models/Distancerecords_model.php +++ b/application/models/Distancerecords_model.php @@ -18,7 +18,7 @@ class Distancerecords_model extends CI_Model { AND COALESCE(COL_SAT_NAME, "") <> "" GROUP BY col_sat_name ) t1 - LEFT JOIN TABLE_HRD_CONTACTS_V01 t2 ON t1.sat = t2.COL_SAT_NAME AND t1.distance = t2.COL_DISTANCE ORDER BY t1.distance DESC; + LEFT JOIN '.$this->config->item('table_name').' t2 ON t1.sat = t2.COL_SAT_NAME AND t1.distance = t2.COL_DISTANCE ORDER BY t1.distance DESC; '; return $this->db->query($sql);