Merge pull request #2250 from nextcloud/check-if-data-is-defined

Check if data is defined
This commit is contained in:
Joas Schilling 2016-11-22 20:31:32 +01:00 committed by GitHub
commit 7b0b7e801f
1 changed files with 1 additions and 1 deletions

View File

@ -497,7 +497,7 @@ var UserList = {
group: group
},
function (response) {
if (response.data.message) {
if (response.data !== undefined && response.data.message) {
OC.Notification.show(response.data.message);
}
}