Skip to content

Commit 97b18b3

Browse files
committed
Merge remote-tracking branch 'upstream/master' into where-group
2 parents fd67871 + 7f53752 commit 97b18b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/ezQuery.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,6 @@ private function conditionIs($key, $condition, $combine)
393393

394394
private function retrieveConditions($whereConditions)
395395
{
396-
$whereConditions = flattenWhereConditions($whereConditions);
397396
$whereKey = [];
398397
$whereValue = [];
399398
$operator = [];
@@ -412,7 +411,7 @@ private function retrieveConditions($whereConditions)
412411
$combiner[] = \_AND;
413412
$extra[] = null;
414413
} else {
415-
if (!empty($checkFields[0])) {
414+
if (isset($checkFields[0])) {
416415
$whereKey[] = $checkFields[0];
417416
$whereValue[] = (isset($checkFields[2])) ? $checkFields[2] : '';
418417
$combiner[] = (isset($checkFields[3])) ? $checkFields[3] : \_AND;

0 commit comments

Comments
 (0)