mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +00:00
check if search() returns false
This commit is contained in:
parent
8f62039994
commit
a074aa6606
|
@ -1226,6 +1226,10 @@ function doSearch() { /* {{{ */
|
|||
if(!$limit = $app->request()->get('limit'))
|
||||
$limit = 5;
|
||||
$resArr = $dms->search($querystr);
|
||||
if($resArr === false) {
|
||||
$app->response()->header('Content-Type', 'application/json');
|
||||
echo json_encode(array());
|
||||
}
|
||||
$entries = array();
|
||||
$count = 0;
|
||||
if($resArr['folders']) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user