Skip to content

Commit 5d8c23d

Browse files
committed
fix: Fix editFolder
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent b44aa8b commit 5d8c23d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

lib/Controller/FoldersController.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -433,11 +433,11 @@ public function editFolder(int $folderId, ?string $title = null, ?int $parent_fo
433433
}
434434
if ($parent_folder !== null) {
435435
$parent_folder = $this->toInternalFolderId($parent_folder);
436-
}
437-
if ($parent_folder === null) {
438-
$res = new JSONResponse(['status' => 'error', 'data' => ['Not found']], Http::STATUS_NOT_FOUND);
439-
$res->throttle();
440-
return $res;
436+
if ($parent_folder === null) {
437+
$res = new JSONResponse(['status' => 'error', 'data' => ['Not found']], Http::STATUS_NOT_FOUND);
438+
$res->throttle();
439+
return $res;
440+
}
441441
}
442442
try {
443443
$folder = $this->folders->updateSharedFolderOrFolder($this->authorizer->getUserId(), $folderId, $title, $parent_folder);

0 commit comments

Comments
 (0)