diff --git a/dblayeroo.php b/dblayeroo.php index 1c65b34..3ab1b66 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -1898,8 +1898,9 @@ class dblayeroo $this->DBException (sprintf ( "Invalid field to whereAdd '%s' : not defined in table", $field)); $operator = strtoupper ($operator); - $allowed = array ("=", "<=", ">=", "!=", "LIKE", "NOT LIKE", "IS NULL", - "IS NOT NULL", "REGEXP", "NOT REGEXP"); + $allowed = array ("=", "<", "<=", ">", ">=", "!=", + "LIKE", "NOT LIKE", "IS NULL", "IS NOT NULL", + "REGEXP", "NOT REGEXP"); if (! in_array ($operator, $allowed)) $this->DBException ("Invalid operator provided (unknown operator)"); // TODO : Check if the value is corresponding to the type of the column