Skip to content

Commit 0b6e2e6

Browse files
authored
Update Builder.php
1 parent c304f20 commit 0b6e2e6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Soql/Builder.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ public function build()
7070

7171
$where = $this->where;
7272
foreach ($where as $key => $val) {
73-
if (is_string($val) && !strtotime($val)) {
73+
if (is_int($key)) {
74+
$where[$key] = $val;
75+
} elseif (is_string($val) && !strtotime($val)) {
7476
$where[$key] = "$key='$val'";
7577
} elseif (is_bool($val)) {
7678
$where[$key] = $key . '=' . ($val ? 'TRUE' : 'FALSE');
@@ -82,4 +84,4 @@ public function build()
8284

8385
return '/query/?q=SELECT+' . implode(',', $this->select) . '+from+' . $this->type . ((count($where)) ? '+where+' . implode('+AND+', $where) : '');
8486
}
85-
}
87+
}

0 commit comments

Comments
 (0)