Skip to content

Commit 68661de

Browse files
author
David Nahodyl
committed
reverted code I didn't understand why it working like that
1 parent e86b02d commit 68661de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Database/Query/FMBaseBuilder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ public function where($column, $operator = null, $value = null, $boolean = 'and'
167167

168168
$currentFind[$this->getMappedFieldName($column)] = $operator . $value;
169169

170-
$this->wheres[] = $currentFind;
170+
// add the where clause KvP to the last item in the array of wheres
171+
$this->wheres[$count > 1 ? $count - 1 : 0] = $currentFind;
171172

172173
return $this;
173174
}

0 commit comments

Comments
 (0)