Bugfix: Correct save_settings() return value (o lack thereof)

This commit is contained in:
Starbeamrainbowlabs 2018-05-12 23:17:42 +01:00
parent 2339505194
commit aac9d15eb9
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 1 deletions

View File

@ -669,7 +669,7 @@ function render_editor($editorName)
*/
function save_settings() {
global $paths, $settings;
file_put_contents($paths->settings_file, json_encode($settings, JSON_PRETTY_PRINT)) !== false;
return file_put_contents($paths->settings_file, json_encode($settings, JSON_PRETTY_PRINT)) !== false;
}
/**