Commit 65b5972e authored by Jens Segers's avatar Jens Segers

Merge pull request #327 from duxet/master

Fix #325
parents b3bdd0df 267b9a14
...@@ -715,16 +715,20 @@ class Builder extends QueryBuilder { ...@@ -715,16 +715,20 @@ class Builder extends QueryBuilder {
*/ */
public function where($column, $operator = null, $value = null, $boolean = 'and') public function where($column, $operator = null, $value = null, $boolean = 'and')
{ {
$params = func_get_args();
// Remove the leading $ from operators. // Remove the leading $ from operators.
if (func_num_args() == 3) if (func_num_args() == 3)
{ {
$operator = &$params[1];
if (starts_with($operator, '$')) if (starts_with($operator, '$'))
{ {
$operator = substr($operator, 1); $operator = substr($operator, 1);
} }
} }
return parent::where($column, $operator, $value, $boolean); return call_user_func_array('parent::where', $params);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment