mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
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…
x
Reference in New Issue
Block a user