From 2ce67e944349881f27b54c1f0f15622337bd7176 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 29 Nov 2016 05:19:18 -0800 Subject: [PATCH] Derp. --- app/Models/Setting.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Models/Setting.php b/app/Models/Setting.php index 2d112025f5..b57e62a15c 100755 --- a/app/Models/Setting.php +++ b/app/Models/Setting.php @@ -48,17 +48,15 @@ class Setting extends Model public static function getSettings() { static $static_cache = null; - + if (!$static_cache) { if (Schema::hasTable('settings')) { $static_cache = Setting::first(); } } + return $static_cache; - return false; - - } public static function setupCompleted()