From c0850865a4263fc5827bdfb8243ca4ff0832a68e Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sat, 7 Oct 2023 13:26:14 +0900 Subject: [PATCH] Fix undefined variable in Config::save() --- common/framework/Config.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/framework/Config.php b/common/framework/Config.php index 63f25403a..0f2b76c9f 100644 --- a/common/framework/Config.php +++ b/common/framework/Config.php @@ -164,7 +164,10 @@ class Config } // Remove the backup file. - Storage::delete($backup_filename); + if (isset($backup_filename)) + { + Storage::delete($backup_filename); + } // Save XE-compatible config files. $warning = '// THIS FILE IS NOT USED IN RHYMIX.' . "\n" . '// TO MODIFY SYSTEM CONFIGURATION, EDIT config.php INSTEAD.';