-fixed javascript error in datatables.js

This commit is contained in:
denise 2012-09-10 14:16:36 -04:00
parent 99a3a8deab
commit 957e644829

View file

@ -32,7 +32,9 @@ class Application_Model_Datatables
} }
if (!empty($sub)) { if (!empty($sub)) {
$where['clause'][$dbname] = "(".implode(' AND ', $sub).")"; $where['clause'][$dbname] = "(".implode(' AND ', $sub).")";
$where['params'][$dbname."1"] = $input1; if ($input1 != null) {
$where['params'][$dbname."1"] = $input1;
}
if ($input2 != null) { if ($input2 != null) {
$where['params'][$dbname."2"] = $input2; $where['params'][$dbname."2"] = $input2;
} }
@ -44,7 +46,6 @@ class Application_Model_Datatables
} }
} }
} }
return $where; return $where;
} }
/* /*