Sitevariable_model->retrieve_one() issue
When I tried to use the retrieve_one method in sitevariable_model it gave an error saying its trying to use an object as an array. Turns out that method is getting an object back from the "find_one" method and then trying to use it as an array. function retrieve_one($name = null)
{
$vars = $this->find_one(array('active' => 'yes', 'name' => $name));
return $vars['value'];
}
The third input variable in "find_one" is "return_method" and it works fine when you set it to "array":
find_one(array('active' => 'yes', 'name' => $name),null,'array');
At least if I use "find_one" like this instead of "retrieve_one".
Comments
https://github.com/daylightstudio/FUEL-CMS/commit/f241e9da872059b91240d5dc0e6be246fe6a0b52