1
0
Fork 0
mirror of synced 2024-06-23 08:40:58 +12:00

Fixed prefs default value

This commit is contained in:
eldadfux 2019-08-09 07:49:36 +03:00
parent 74a60c7209
commit 7454eda2e9
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ $utopia->get('/v1/account/prefs')
$prefs = $user->getAttribute('prefs', '{}');
if(empty($prefs)) {
$prefs = [];
$prefs = '[]';
}
try {

View file

@ -140,7 +140,7 @@ $utopia->get('/v1/users/:userId/prefs')
$prefs = $user->getAttribute('prefs', '');
if(empty($prefs)) {
$prefs = [];
$prefs = '[]';
}
try {