Update Repository.php

This commit is contained in:
Graham Campbell
2015-05-30 09:42:29 +01:00
parent e81b29053a
commit d9414fc25c

View File

@@ -55,8 +55,8 @@ class Repository
$this->settings = $this->model->all()->lists('value', 'name');
}
// if the setting exists, return it
if (isset($this->settings[$name]) && $this->settings[$name]) {
// if the setting exists and is not blank, return it
if (!empty($this->settings[$name])) {
return $this->settings[$name];
}