summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-09-06 12:57:14 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-09-20 12:11:26 +0200
commit118c9d58fe44788bb2b0b684ac1209c23f847ff6 (patch)
treeb2cde8e11e9dc39f093b5a4b3a8fbc58e13feedb /apps/files_sharing/lib
parent09e1218df939ffb28160d054bed28af8fc29113e (diff)
downloadnextcloud-server-118c9d58fe44788bb2b0b684ac1209c23f847ff6.tar.gz
nextcloud-server-118c9d58fe44788bb2b0b684ac1209c23f847ff6.zip
Fix fed share test call to return proper result
Fixes an issue where retrying a previously failed federated share would not properly reset the availability flag because the return value was undefined instead of "true".
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/External/Storage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/External/Storage.php b/apps/files_sharing/lib/External/Storage.php
index 1ed6375cd4f..caa2bcf2a79 100644
--- a/apps/files_sharing/lib/External/Storage.php
+++ b/apps/files_sharing/lib/External/Storage.php
@@ -186,7 +186,7 @@ class Storage extends DAV implements ISharedStorage {
public function test() {
try {
- parent::test();
+ return parent::test();
} catch (StorageInvalidException $e) {
// check if it needs to be removed
$this->checkStorageAvailability();