Skip to content

A free open source IT asset/license management system

Derp.

snipe2ce67e944349
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,16 +48,14 @@ 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;
+ return $static_cache;
}