monitoring: Use empty() for is empty check in the servicegrid view script
refs #9538
This commit is contained in:
parent
5ae541db25
commit
b629115ba7
|
@ -15,7 +15,7 @@ if (! $this->compact): ?>
|
||||||
|
|
||||||
$hasHeader = false;
|
$hasHeader = false;
|
||||||
$pivotData = $this->pivot->toArray();
|
$pivotData = $this->pivot->toArray();
|
||||||
if (count($pivotData) === 0) {
|
if (empty($pivotData)) {
|
||||||
echo $this->translate('No services found matching the filter') . '</div>';
|
echo $this->translate('No services found matching the filter') . '</div>';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue