From: Evan Prodromou Date: Thu, 8 Sep 2011 16:01:06 +0000 (-0400) Subject: Quietly skip trying to load config if there's an error in DB X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3056b109a2beb467853f20aac4f763194a265e5b;p=quix0rs-gnu-social.git Quietly skip trying to load config if there's an error in DB --- diff --git a/classes/Config.php b/classes/Config.php index ba0db588ca..bd191486cb 100644 --- a/classes/Config.php +++ b/classes/Config.php @@ -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; } }