Merge pull request #55 from marc1706/master

Make sure we don't try to copy folders
This commit is contained in:
Marc Alexander
2012-02-26 04:20:40 -08:00

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))