Skip to content

Commit 929f967

Browse files
committed
changes
1 parent 71c123e commit 929f967

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Where.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ public static function init($op)
1616

1717
public function add($field, $value, $operator = "=")
1818
{
19+
if (
20+
strpos($field, "=") !== FALSE
21+
|| strpos($field, ">") !== FALSE
22+
|| strpos($field, "<") !== FALSE
23+
|| strpos($field, "NOT") !== FALSE
24+
)
25+
{
26+
$operator = "";
27+
}
28+
1929
$this->fields[] = array(
2030
"field" => trim($field),
2131
"value" => $value,

0 commit comments

Comments
 (0)