From 39d74e23fc0b0f9af6a2e44a9a21cc2699ffb475 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 9 Feb 2020 19:26:41 -0600 Subject: [PATCH] Fix "non zero" date error --- application/models/Logbook_model.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index bb1f7a5b..62990cc9 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -1539,10 +1539,8 @@ class Logbook_model extends CI_Model { $dxcc_result = $this->db->select('`call`, `entity`, `adif`, `cqz`') ->where('call', substr($call, 0, $i)) ->where('(start <= ', $date) - ->or_where("start = '0000-00-00'", NULL, false) ->or_where("start is null)", NULL, false) ->where('(end >= ', $date) - ->or_where("end = '0000-00-00'", NULL, false) ->or_where("end is null)", NULL, false) ->get('dxcc_prefixes'); @@ -1579,10 +1577,8 @@ class Logbook_model extends CI_Model { $dxcc_result = $this->db->select('*') ->where('call', substr($call, 0, $i)) ->where('(start <= ', $date) - ->or_where("start = '0000-00-00'", NULL, false) ->or_where("start is null)", NULL, false) ->where('(end >= ', $date) - ->or_where("end = '0000-00-00'", NULL, false) ->or_where("end is null)", NULL, false) ->get('dxcc_prefixes');