mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Fixes #2970
Should probably override this later using the global settings variable
This commit is contained in:
parent
6bb5555a73
commit
cc943e22db
|
@ -49,10 +49,15 @@ class Setting extends Model
|
||||||
{
|
{
|
||||||
static $static_cache = null;
|
static $static_cache = null;
|
||||||
|
|
||||||
if (!$static_cache) {
|
if (Schema::hasTable('settings')) {
|
||||||
$static_cache = Setting::first();
|
if (!$static_cache) {
|
||||||
|
$static_cache = Setting::first();
|
||||||
|
}
|
||||||
|
return $static_cache;
|
||||||
}
|
}
|
||||||
return $static_cache;
|
return false;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function setupCompleted()
|
public static function setupCompleted()
|
||||||
|
|
Loading…
Reference in a new issue