Skip to content

Commit

Permalink
MDL-16596 fixed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 21, 2008
1 parent a83ad94 commit efde411
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion files/draftfiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
} else {
$file = $_FILES['newfile'];
$newfilename = clean_param($file['name'], PARAM_FILE);
// TODO: some better error handling or use some upload manager
if (is_uploaded_file($_FILES['newfile']['tmp_name'])) {
if ($existingfile = $fs->get_file($contextid, $filearea, $itemid, $filepath, $newfilename)) {
$existingfile->delete();
Expand Down

0 comments on commit efde411

Please sign in to comment.