Made options array non-case sensitive
This commit is contained in:
parent
89e2c3db19
commit
a72f49f2b4
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue