Quietly skip trying to load config if there's an error in DB
This commit is contained in:
parent
9948523c33
commit
3056b109a2
|
@ -59,9 +59,13 @@ class Config extends Managed_DataObject
|
||||||
|
|
||||||
static function loadSettings()
|
static function loadSettings()
|
||||||
{
|
{
|
||||||
$settings = self::_getSettings();
|
try {
|
||||||
if (!empty($settings)) {
|
$settings = self::_getSettings();
|
||||||
self::_applySettings($settings);
|
if (!empty($settings)) {
|
||||||
|
self::_applySettings($settings);
|
||||||
|
}
|
||||||
|
} catch (Exception $e) {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user