Fixed prefs default value
This commit is contained in:
parent
74a60c7209
commit
7454eda2e9
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ $utopia->get('/v1/account/prefs')
|
|||
$prefs = $user->getAttribute('prefs', '{}');
|
||||
|
||||
if(empty($prefs)) {
|
||||
$prefs = [];
|
||||
$prefs = '[]';
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
|
@ -140,7 +140,7 @@ $utopia->get('/v1/users/:userId/prefs')
|
|||
$prefs = $user->getAttribute('prefs', '');
|
||||
|
||||
if(empty($prefs)) {
|
||||
$prefs = [];
|
||||
$prefs = '[]';
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue