check if search() returns false

This commit is contained in:
Uwe Steinmann 2018-04-12 12:33:46 +02:00
parent 8f62039994
commit a074aa6606

View File

@ -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']) {