mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +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,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue