Welcome Guest, Not a member yet? Register   Sign In
models being assigned to themselves
#1

[eluser]Unknown[/eluser]
I'm on 1.5.4 and I'm noticing that models are being assigned to themselves by the function _assign_libraries in the Model.php library. I think line 62 should be changed from

Code:
if ( ! isset($this->$key) AND $key != $this->_parent_name)

to

Code:
if ( ! isset($this->$key) AND $key != strtolower($this->_parent_name))

because the key will always be all lowercase while the model's _parent_name variable will be capitalized.




Theme © iAndrew 2016 - Forum software by © MyBB