-fixed javascript error in datatables.js
This commit is contained in:
parent
99a3a8deab
commit
957e644829
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue