Skip to content

Commit 6b3bd36

Browse files
author
vishalverma.magento279
committed
#25245 fixed
1 parent 99f206f commit 6b3bd36

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/code/Magento/Search/Block/Term.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ protected function _loadTerms()
9999
$temp[$term->getQueryText()] = $term;
100100
$termKeys[] = $term->getQueryText();
101101
}
102+
if (empty($termKeys)) {
103+
return $this;
104+
}
102105
natcasesort($termKeys);
103106

104107
foreach ($termKeys as $termKey) {

0 commit comments

Comments
 (0)