Skip to content
Snippets Groups Projects
Commit f883fc3b authored by Moritz Strohm's avatar Moritz Strohm
Browse files

FileManager::moveFolder: also check the destination folder before making a...

FileManager::moveFolder: also check the destination folder before making a special treatment for StandardFolder, re #2985

Merge request studip/studip!2001
parent d397db18
No related branches found
No related tags found
No related merge requests found
...@@ -1060,7 +1060,7 @@ class FileManager ...@@ -1060,7 +1060,7 @@ class FileManager
} }
$new_folder = null; $new_folder = null;
if ($source_folder instanceof StandardFolder) { if (($source_folder instanceof StandardFolder) && ($destination_folder instanceof StandardFolder)) {
//Standard folders just have to be put below the //Standard folders just have to be put below the
//destination folder. //destination folder.
$new_folder = $destination_folder->createSubfolder($source_folder); $new_folder = $destination_folder->createSubfolder($source_folder);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment