Guard against arrays being passed to is_file, fixes #1627
parent
259a25344d
commit
9f961dca92
|
@ -57,7 +57,7 @@ abstract class ArchiveDownloader extends FileDownloader
|
|||
$contentDir = $contentDir[0];
|
||||
}
|
||||
|
||||
if (is_file($contentDir)) {
|
||||
if (is_string($contentDir) && is_file($contentDir)) {
|
||||
$this->filesystem->rename($contentDir, $path . '/' . basename($contentDir));
|
||||
} else {
|
||||
foreach (array_merge(glob($contentDir . '/.*'), glob($contentDir . '/*')) as $file) {
|
||||
|
|
Loading…
Reference in New Issue