diff --git a/lib/Models/Setting.php b/lib/Models/Setting.php index 521ef3b4e2..78ba98c26f 100644 --- a/lib/Models/Setting.php +++ b/lib/Models/Setting.php @@ -32,7 +32,7 @@ class Setting extends Model { public static function getValue($key, $default = null) { trigger_error('Calling Settings::getValue() is deprecated and will be removed. Use \MailPoet\Settings\SettingsController instead.', E_USER_DEPRECATED); $settings = new SettingsController(); - $settings->get($key, $default); + return $settings->get($key, $default); } public static function getAll() {