Permalink
Browse files

[patch_to_mod] - Fixed the empty directory into the packages created

  • Loading branch information...
1 parent e8cc489 commit 11efcfa2dd5bf2ee4348305c752fd49089d8d428 @emanuele45 emanuele45 committed Nov 8, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 patch_to_mod.php
View
@@ -262,6 +262,10 @@ function prepare_files ()
if (!empty($_FILES['mod_patch']['error'][$key]))
return false;
+ // If no files are specified the array contains an empty item
+ if (empty($_FILES['mod_file']['tmp_name'][$key]))
+ continue;
+
// That one goes into a subdir
if (isset($_POST['mod_file_subdir'][$key]))
$context['up_files'][$key]['sub_dir'] = $_POST['mod_file_subdir'][$key];

0 comments on commit 11efcfa

Please sign in to comment.