mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Do not attempt to save new config if loading failed
This commit is contained in:
parent
8034415503
commit
28af7b95cf
1 changed files with 4 additions and 2 deletions
|
|
@ -25,8 +25,10 @@ class Config
|
|||
}
|
||||
else
|
||||
{
|
||||
self::$_config = self::convert();
|
||||
self::save();
|
||||
if (self::$_config = self::convert())
|
||||
{
|
||||
self::save();
|
||||
}
|
||||
}
|
||||
return self::$_config;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue