Do not attempt to save new config if loading failed

This commit is contained in:
Kijin Sung 2016-02-03 11:31:33 +09:00
parent 8034415503
commit 28af7b95cf

View file

@ -25,9 +25,11 @@ class Config
} }
else else
{ {
self::$_config = self::convert(); if (self::$_config = self::convert())
{
self::save(); self::save();
} }
}
return self::$_config; return self::$_config;
} }