From 28af7b95cfbe7929b6c75c78168e3f0d2fc64c87 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Wed, 3 Feb 2016 11:31:33 +0900 Subject: [PATCH] Do not attempt to save new config if loading failed --- common/framework/config.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/framework/config.php b/common/framework/config.php index 3b8a0b190..227b4a055 100644 --- a/common/framework/config.php +++ b/common/framework/config.php @@ -25,8 +25,10 @@ class Config } else { - self::$_config = self::convert(); - self::save(); + if (self::$_config = self::convert()) + { + self::save(); + } } return self::$_config; }