Skip to content

Commit e163213

Browse files
committed
Fixes
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
1 parent d3b6289 commit e163213

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

apps/files_sharing/lib/External/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function addShare($remote, $token, $password, $name, $owner, $shareType,
155155
$accepted = $accepted ? IShare::STATUS_ACCEPTED : IShare::STATUS_PENDING;
156156
$name = Filesystem::normalizePath('/' . $name);
157157

158-
if (!$accepted) {
158+
if ($accepted !== IShare::STATUS_ACCEPTED) {
159159
// To avoid conflicts with the mount point generation later,
160160
// we only use a temporary mount point name here. The real
161161
// mount point name will be generated when accepting the share,

lib/private/Share20/DefaultShareProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ public function acceptShare(IShare $share, string $recipient): IShare {
355355
->execute();
356356

357357
$data = $stmt->fetch();
358+
$stmt->closeCursor();
358359

359360
/*
360361
* Check if there already is a user specific group share.

0 commit comments

Comments
 (0)