diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2020-10-04 20:45:33 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2020-11-03 19:58:37 +0100 |
commit | 10e8c28feaf6d858948285a291231f651ef74728 (patch) | |
tree | 5c48216dc1ce6a6dd8f292d489bb4a7d03cb5595 /lib/Command/Config/FolderDelete.php | |
parent | 361cfa55b7302b29e158647060085550b9a3dfe1 (diff) |
Add migration with foreign keys
Closes #829
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Command/Config/FolderDelete.php')
-rw-r--r-- | lib/Command/Config/FolderDelete.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Command/Config/FolderDelete.php b/lib/Command/Config/FolderDelete.php index bf7608b02..397eda999 100644 --- a/lib/Command/Config/FolderDelete.php +++ b/lib/Command/Config/FolderDelete.php @@ -50,11 +50,11 @@ class FolderDelete extends Command $user = $input->getArgument('user-id'); $id = $input->getArgument('folder-id'); - if ($id === '0') { + if ($id === null) { throw new ServiceException('Can not remove root folder!'); } - $this->folderService->delete($user, $id); + $this->folderService->delete($user, intval($id)); return 0; } |