ObjectsController: fix 8.1 glitch for JSON format
This commit is contained in:
parent
f24f8eb287
commit
fe3d5c7076
|
@ -89,7 +89,7 @@ class IcingaObjectsHandler extends RequestHandler
|
|||
$resolved = (bool) $params->get('resolved', false);
|
||||
$withNull = ! $params->shift('withNull');
|
||||
$properties = $params->shift('properties');
|
||||
if (strlen($properties)) {
|
||||
if ($properties !== null && strlen($properties)) {
|
||||
$properties = preg_split('/\s*,\s*/', $properties, -1, PREG_SPLIT_NO_EMPTY);
|
||||
} else {
|
||||
$properties = null;
|
||||
|
|
|
@ -85,7 +85,7 @@ abstract class ObjectsController extends ActionController
|
|||
$table->filterObjectType('apply');
|
||||
}
|
||||
$search = $this->params->get('q');
|
||||
if (\strlen($search) > 0) {
|
||||
if ($search !== null && \strlen($search) > 0) {
|
||||
$table->search($search);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue