Fixed issues with defaulting the array to the conditionals.

This commit is contained in:
josh 2010-12-18 01:20:40 -05:00
parent 261b2546e7
commit f0c3435a0b

View file

@ -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;
}
}