From 6fe357ef3bf641a7400567c1237c97d8d8b15b84 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Mon, 3 Mar 2014 17:37:53 +0000 Subject: [PATCH] fixed bug where M1 was not assigned as england --- application/models/dxcc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/dxcc.php b/application/models/dxcc.php index fa08220f..eb723929 100644 --- a/application/models/dxcc.php +++ b/application/models/dxcc.php @@ -28,7 +28,7 @@ class DXCC extends CI_Model { $query = $this->db->query(' SELECT * FROM dxcc - WHERE prefix = SUBSTRING( \''.$callsign.'\', 1, LENGTH( prefix ) ) + WHERE prefix = SUBSTRING( \''.$callsign.'\', 1, LENGTH( prefix ) ) AND end_date = "0000-00-00 00:00:00" ORDER BY LENGTH( prefix ) DESC LIMIT 1 ');