We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71595f7 commit 8c85448Copy full SHA for 8c85448
backend/class/api/Manage.class.php
@@ -29,7 +29,8 @@ private static function saltPassword($pwd) {
29
}
30
31
private static function settings() {
32
- return json_decode(DbProvider::getDb()->getReserved(DbBase::$KEY_MANAGE_SETTINGS), true);
+ $settings = json_decode(DbProvider::getDb()->getReserved(DbBase::$KEY_MANAGE_SETTINGS), true);
33
+ return $settings === '' ? new stdClass : $settings;
34
35
private static function updateSetting($settingId, $value) {
36
$settings = self::settings();
0 commit comments