]> source.dussan.org Git - nextcloud-server.git/commitdiff
add missing return for shared
authorRobin Appelman <icewind@owncloud.com>
Thu, 19 Mar 2015 14:26:47 +0000 (15:26 +0100)
committerRobin Appelman <icewind@owncloud.com>
Mon, 13 Apr 2015 13:13:03 +0000 (15:13 +0200)
apps/files_sharing/lib/sharedstorage.php

index a339637552aa66d992db88ca61385ff6dbb4d1a3..ce8758a6d8cd41ccbe963c43ef6939df9dd2e331 100644 (file)
@@ -597,7 +597,7 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage {
        public function copyFromStorage(\OCP\Files\Storage $sourceStorage, $sourceInternalPath, $targetInternalPath) {
                /** @var \OCP\Files\Storage $targetStorage */
                list($targetStorage, $targetInternalPath) = $this->resolvePath($targetInternalPath);
-               $targetStorage->copyFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath);
+               return $targetStorage->copyFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath);
        }
 
        /**
@@ -609,6 +609,6 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage {
        public function moveFromStorage(\OCP\Files\Storage $sourceStorage, $sourceInternalPath, $targetInternalPath) {
                /** @var \OCP\Files\Storage $targetStorage */
                list($targetStorage, $targetInternalPath) = $this->resolvePath($targetInternalPath);
-               $targetStorage->moveFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath);
+               return $targetStorage->moveFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath);
        }
 }