It looks like you're new here. If you want to get involved, click one of these buttons!
public function retrieve_one($name = null)
{
$vars = $this->find_one_array(array('active' => 'yes', 'name' => $name));
return $vars['value'];
}
Returns an error if $vars is empty (ie. if named variable is set to inactive).
Try this instead:
return (!empty($vars))?$vars['value']:'';
Comments
This has been pushed to the develop branch:
https://github.com/daylightstudio/FUEL-CMS/tree/develop