Resolve conflict in addShare parameters
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
0bbc0dde10
commit
e155943a3b
|
@ -131,7 +131,7 @@ class Manager {
|
||||||
* @return Mount|null
|
* @return Mount|null
|
||||||
* @throws \Doctrine\DBAL\DBALException
|
* @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;
|
$user = $user ? $user : $this->uid;
|
||||||
$accepted = $accepted ? IShare::STATUS_ACCEPTED : IShare::STATUS_PENDING;
|
$accepted = $accepted ? IShare::STATUS_ACCEPTED : IShare::STATUS_PENDING;
|
||||||
$name = Filesystem::normalizePath('/' . $name);
|
$name = Filesystem::normalizePath('/' . $name);
|
||||||
|
|
Loading…
Reference in New Issue