diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-07-01 16:20:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-01 16:20:39 +0200 |
commit | ba95297c5c3fb0989f26e9c23a22395aea95a537 (patch) | |
tree | 66e8be54a5e7d4228c3151f46f909b79b3f14284 /core | |
parent | 6f92aef2657c17dd7cbe5eecfd0a4c508c2424f1 (diff) | |
parent | 646c90cc4a92775e4278f9f8237b5c4173665403 (diff) | |
download | nextcloud-server-ba95297c5c3fb0989f26e9c23a22395aea95a537.tar.gz nextcloud-server-ba95297c5c3fb0989f26e9c23a22395aea95a537.zip |
Merge pull request #25262 from owncloud/fed-sharing-error
Only save federated share after remote server is notified
Diffstat (limited to 'core')
-rw-r--r-- | core/js/shareitemmodel.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/shareitemmodel.js b/core/js/shareitemmodel.js index 3ced66a1a78..9f75ac42f21 100644 --- a/core/js/shareitemmodel.js +++ b/core/js/shareitemmodel.js @@ -187,7 +187,7 @@ }).fail(function(xhr) { var msg = t('core', 'Error'); var result = xhr.responseJSON; - if (result.ocs && result.ocs.meta) { + if (result && result.ocs && result.ocs.meta) { msg = result.ocs.meta.message; } |