diff --git a/application/controllers/Qslprint.php b/application/controllers/Qslprint.php index 5c4391e2..bc826b06 100644 --- a/application/controllers/Qslprint.php +++ b/application/controllers/Qslprint.php @@ -115,8 +115,8 @@ class QSLPrint extends CI_Controller { function qsl_printed() { - if ($this->uri->segment(3) == 'All') { - $station_id = NULL; + if ($this->uri->segment(3) == 'all') { + $station_id = 'All'; } else { $station_id = $this->security->xss_clean($this->uri->segment(3)); } diff --git a/application/models/Qslprint_model.php b/application/models/Qslprint_model.php index b32ef8b5..23177eb3 100644 --- a/application/models/Qslprint_model.php +++ b/application/models/Qslprint_model.php @@ -22,7 +22,7 @@ class Qslprint_model extends CI_Model { if ($station_id2 == NULL) { $this->db->where("station_id", $station_id); - } else { + } else if ($station_id2 != 'All') { $this->db->where("station_id", $station_id2); }