aboutsummaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-11-22 20:31:32 +0100
committerGitHub <noreply@github.com>2016-11-22 20:31:32 +0100
commit7b0b7e801f23e3115cfb43ea777171d0a443eb8c (patch)
tree1606ec90834c7feced0f41759abfc9ddeb949e35 /settings
parentca3b67703c8f99820136cb3307df64540b460887 (diff)
parente827be759d11fea60da975e24ae31006dad050df (diff)
downloadnextcloud-server-7b0b7e801f23e3115cfb43ea777171d0a443eb8c.tar.gz
nextcloud-server-7b0b7e801f23e3115cfb43ea777171d0a443eb8c.zip
Merge pull request #2250 from nextcloud/check-if-data-is-defined
Check if data is defined
Diffstat (limited to 'settings')
-rw-r--r--settings/js/users/users.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index 7e70d98f091..71defeaa18a 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -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);
}
}