Skip to content

Commit 9f3bec7

Browse files
QuyTonQuy
andauthored
Add null check for search filter (joomla#44349)
Co-authored-by: Quy <[email protected]>
1 parent 3b358b8 commit 9f3bec7

File tree

1 file changed

+1
-1
lines changed
  • administrator/components/com_cache/src/View/Cache

1 file changed

+1
-1
lines changed

administrator/components/com_cache/src/View/Cache/HtmlView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function display($tpl = null): void
104104
throw new GenericDataException(implode("\n", $errors), 500);
105105
}
106106

107-
if (!\count($this->data) && $this->state->get('filter.search') === '') {
107+
if (!\count($this->data) && ($this->state->get('filter.search') === null || $this->state->get('filter.search') === '')) {
108108
$this->setLayout('emptystate');
109109
}
110110

0 commit comments

Comments
 (0)