clarity for not-emptiness
This commit is contained in:
parent
0dca09c230
commit
c8bd5e8d49
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Reference in a new issue