]> source.dussan.org Git - nextcloud-server.git/commitdiff
Resolve conflict in addShare parameters
authorJulius Härtl <jus@bitgrid.net>
Fri, 11 Dec 2020 07:11:54 +0000 (08:11 +0100)
committerJulius Härtl <jus@bitgrid.net>
Mon, 14 Dec 2020 10:11:00 +0000 (11:11 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/files_sharing/lib/External/Manager.php

index e59c98b07cdb13860d14a8a6bb5c1b01b0eeda92..e4b28804fccad6970a9140528bbf4d6977755f4e 100644 (file)
@@ -131,7 +131,7 @@ class Manager {
         * @return Mount|null
         * @throws \Doctrine\DBAL\DBALException
         */
-       public function addShare($remote, $token, $password, $name, $owner, $shareType, $accepted=false, $user = null, $remoteId = -1, $parent = -1) {
+       public function addShare($remote, $token, $password, $name, $owner, $shareType, $accepted = false, $user = null, $remoteId = '', $parent = -1) {
                $user = $user ? $user : $this->uid;
                $accepted = $accepted ? IShare::STATUS_ACCEPTED : IShare::STATUS_PENDING;
                $name = Filesystem::normalizePath('/' . $name);