A free open source IT asset/license management system
Fixes #2970
snipecc943e22db5a
diff --git a/app/Models/Setting.php b/app/Models/Setting.phpindex c2849084d0..b67f87599c 100755--- a/app/Models/Setting.php+++ b/app/Models/Setting.php@@ -49,10 +49,15 @@ class Setting extends Model{static $static_cache = null;- if (!$static_cache) {- $static_cache = Setting::first();+ if (Schema::hasTable('settings')) {+ if (!$static_cache) {+ $static_cache = Setting::first();+ }+ return $static_cache;}- return $static_cache;+ return false;++}public static function setupCompleted()