Make sure we don't try to copy folders
This commit is contained in:
8
root/portal/includes/functions_upload.php
Normal file → Executable file
8
root/portal/includes/functions_upload.php
Normal file → Executable file
@@ -131,6 +131,14 @@ class portal_upload
|
|||||||
// Let's start moving our files where they belong
|
// Let's start moving our files where they belong
|
||||||
foreach ($actions['NEW_FILES'] as $source => $target)
|
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);
|
$status = $this->copy_content($source, $target);
|
||||||
|
|
||||||
if ($status !== true && !is_null($status))
|
if ($status !== true && !is_null($status))
|
||||||
|
|||||||
Reference in New Issue
Block a user