Quietly skip trying to load config if there's an error in DB

This commit is contained in:
Evan Prodromou 2011-09-08 12:01:06 -04:00
parent 9948523c33
commit 3056b109a2

View File

@ -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;
}
}