Skip to content

Commit

Permalink
fix: null site variable (from https://forum.getfuelcms.com/discussion…
Browse files Browse the repository at this point in the history
  • Loading branch information
David McReynolds committed Jul 19, 2019
1 parent 19fe311 commit 897fdf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuel/modules/fuel/models/Fuel_sitevariables_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function retrieve_all()
public function retrieve_one($name = null)
{
$vars = $this->find_one_array(array('active' => 'yes', 'name' => $name));
return $vars['value'];
return !empty($vars) ? $vars['value'] : NULL;
}

// --------------------------------------------------------------------
Expand Down

0 comments on commit 897fdf3

Please sign in to comment.