clarity for not-emptiness

This commit is contained in:
Shish 2020-10-25 13:09:51 +00:00
parent 0dca09c230
commit c8bd5e8d49

View file

@ -289,7 +289,7 @@ class Image
$stpe = send_event(new SearchTermParseEvent($stpen++, null, $terms));
if ($stpe->order) {
$order = $stpe->order;
} elseif ($stpe->querylets) {
} elseif (!empty($stpe->querylets)) {
foreach ($stpe->querylets as $querylet) {
$img_conditions[] = new ImgCondition($querylet, true);
}
@ -309,7 +309,7 @@ class Image
$stpe = send_event(new SearchTermParseEvent($stpen++, $term, $terms));
if ($stpe->order) {
$order = $stpe->order;
} elseif ($stpe->querylets) {
} elseif (!empty($stpe->querylets)) {
foreach ($stpe->querylets as $querylet) {
$img_conditions[] = new ImgCondition($querylet, $positive);
}