diff --git a/airtime_mvc/application/models/Datatables.php b/airtime_mvc/application/models/Datatables.php index 4a455fedd..60451972e 100644 --- a/airtime_mvc/application/models/Datatables.php +++ b/airtime_mvc/application/models/Datatables.php @@ -32,7 +32,9 @@ class Application_Model_Datatables } if (!empty($sub)) { $where['clause'][$dbname] = "(".implode(' AND ', $sub).")"; - $where['params'][$dbname."1"] = $input1; + if ($input1 != null) { + $where['params'][$dbname."1"] = $input1; + } if ($input2 != null) { $where['params'][$dbname."2"] = $input2; } @@ -44,7 +46,6 @@ class Application_Model_Datatables } } } - return $where; } /*