Fuel_sitevariables_model.php

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

Sign In or Register to comment.