summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2016-10-24 17:04:40 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2016-11-01 19:54:40 +0100
commit77f74b9780f416fad8d529e789d045ead1b81c89 (patch)
treef1098d8b6bc02603cad492c15a3895fdbbaa4651 /core
parent318160647a62386b4fda5c04ddca04673bf97813 (diff)
downloadnextcloud-server-77f74b9780f416fad8d529e789d045ead1b81c89.tar.gz
nextcloud-server-77f74b9780f416fad8d529e789d045ead1b81c89.zip
handle case if no share-by-mail share provider is loaded
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'core')
-rw-r--r--core/js/sharedialogview.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js
index 30cb0b1fbfd..c22d9469da8 100644
--- a/core/js/sharedialogview.js
+++ b/core/js/sharedialogview.js
@@ -154,7 +154,11 @@
var users = result.ocs.data.exact.users.concat(result.ocs.data.users);
var groups = result.ocs.data.exact.groups.concat(result.ocs.data.groups);
var remotes = result.ocs.data.exact.remotes.concat(result.ocs.data.remotes);
- var emails = result.ocs.data.exact.emails.concat(result.ocs.data.emails);
+ if (typeof(result.ocs.data.emails) !== 'undefined') {
+ var emails = result.ocs.data.exact.emails.concat(result.ocs.data.emails);
+ } else {
+ var emails = [];
+ }
var usersLength;
var groupsLength;