Make sure we don't try to copy folders

This commit is contained in:
Marc Alexander
2012-02-26 13:19:14 +01:00
parent 9e542e181d
commit 4917e8ca3c

8
root/portal/includes/functions_upload.php Normal file → Executable file
View File

@@ -131,6 +131,14 @@ class portal_upload
// Let's start moving our files where they belong
foreach ($actions['NEW_FILES'] as $source => $target)
{
/*
* make sure we don't try to copy folders
* folders will be created if necessary in copy_content
*/
if(is_dir($source))
{
continue;
}
$status = $this->copy_content($source, $target);
if ($status !== true && !is_null($status))