]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Quietly skip trying to load config if there's an error in DB
authorEvan Prodromou <evan@status.net>
Thu, 8 Sep 2011 16:01:06 +0000 (12:01 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 8 Sep 2011 16:01:06 +0000 (12:01 -0400)
classes/Config.php

index ba0db588cafa1fee01c65c4d0cbd61ea53de24a8..bd191486cb8544c086e7cf4ee13bd2091e1e8a14 100644 (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;
         }
     }