Fixed issues with defaulting the array to the conditionals.
This commit is contained in:
parent
261b2546e7
commit
f0c3435a0b
1 changed files with 1 additions and 2 deletions
|
@ -882,10 +882,9 @@ class Model extends Object
|
|||
// Clean up the variable just in case
|
||||
$key = trim(strtolower($key));
|
||||
|
||||
if (isset($this->$key))
|
||||
if (in_array($key, array('fields', 'table', 'joins', 'hints', 'conditions', 'group', 'having', 'order', 'limit', 'offset')))
|
||||
{
|
||||
$this->$key = $value;
|
||||
|
||||
$conditions = false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue