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()
|
||||
{
|
||||
$settings = self::_getSettings();
|
||||
if (!empty($settings)) {
|
||||
self::_applySettings($settings);
|
||||
try {
|
||||
$settings = self::_getSettings();
|
||||
if (!empty($settings)) {
|
||||
self::_applySettings($settings);
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user