mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -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;
|
||||
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue