fix: [API] Don't strip empty usersettings from users/view

pull/5435/head
iglocska 2019-11-26 19:34:37 +01:00
parent 0c850c7cdb
commit e6e28dfc27
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class UsersController extends AppController
$user['User']['password'] = '*****';
$objectsToInclude = array('User', 'Role', 'UserSetting', 'Organisation');
foreach ($objectsToInclude as $objectToInclude) {
if (!empty($user[$objectToInclude])) {
if (isset($user[$objectToInclude])) {
$temp[$objectToInclude] = $user[$objectToInclude];
}
}