Made options array non-case sensitive

This commit is contained in:
Josh Sherman 2010-12-09 20:19:03 -05:00
parent 89e2c3db19
commit a72f49f2b4

View file

@ -856,6 +856,9 @@ class Model extends Object
// Adds the parameters to the object
foreach ($parameters as $key => $value)
{
// Clean up the variable just in case
$key = trim(strtolower($key));
if (isset($this->$key))
{
$this->$key = $value;
@ -874,6 +877,7 @@ class Model extends Object
return false;
}
/**
* Unescape String
*