ServicesetController: one more PHP 8.1 warning

This commit is contained in:
Thomas Gelf 2021-12-23 10:06:38 +01:00
parent 673c1c520e
commit 7d68f8014b

View File

@ -12,7 +12,6 @@ use Icinga\Module\Director\Web\Table\IcingaHostsMatchingFilterTable;
use Icinga\Module\Director\Web\Table\IcingaServiceSetHostTable;
use Icinga\Module\Director\Web\Table\IcingaServiceSetServiceTable;
use gipfl\IcingaWeb2\Link;
use Ramsey\Uuid\Uuid;
class ServicesetController extends ObjectController
{
@ -90,7 +89,7 @@ class ServicesetController extends ObjectController
$table->renderTo($this);
}
$filter = $set->get('assign_filter');
if (\strlen($filter) > 0) {
if ($filter !== null && \strlen($filter) > 0) {
$this->content()->add(
IcingaHostsMatchingFilterTable::load(Filter::fromQueryString($filter), $this->db())
);