1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-12-23 01:55:01 +00:00

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

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;
}
/**