mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-10-04 23:22:24 +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'))
|
if(!$limit = $app->request()->get('limit'))
|
||||||
$limit = 5;
|
$limit = 5;
|
||||||
$resArr = $dms->search($querystr);
|
$resArr = $dms->search($querystr);
|
||||||
|
if($resArr === false) {
|
||||||
|
$app->response()->header('Content-Type', 'application/json');
|
||||||
|
echo json_encode(array());
|
||||||
|
}
|
||||||
$entries = array();
|
$entries = array();
|
||||||
$count = 0;
|
$count = 0;
|
||||||
if($resArr['folders']) {
|
if($resArr['folders']) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user