Skip to content

Commit

Permalink
Use ipl\Stdlib\Filter::like() for not null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed May 23, 2022
1 parent c214ce8 commit 0d123dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/controllers/HostsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function indexAction()
$db = $this->getDb();

$hosts = Host::on($db)->with('state');
$hosts->filter(Filter::equal('state.performance_data', '*'));
$hosts->filter(Filter::like('state.performance_data', '*'));

$this->applyRestrictions($hosts);

Expand Down
2 changes: 1 addition & 1 deletion application/controllers/ServicesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function indexAction()
$services = Service::on($db)
->with('state')
->with('host');
$services->filter(Filter::equal('state.performance_data', '*'));
$services->filter(Filter::like('state.performance_data', '*'));

$this->applyRestrictions($services);

Expand Down

0 comments on commit 0d123dd

Please sign in to comment.