Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.


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']:'';


Sign In or Register to comment.