From 3056b109a2beb467853f20aac4f763194a265e5b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 8 Sep 2011 12:01:06 -0400 Subject: [PATCH] Quietly skip trying to load config if there's an error in DB --- classes/Config.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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; } } -- 2.39.5