Skip to content
Snippets Groups Projects
Commit 3a102013 authored by François Agneray's avatar François Agneray
Browse files

Fixed bug archive action add is_file condition

parent fa3be0fe
No related branches found
No related tags found
1 merge request!29Develop
Pipeline #7027 passed
Pipeline: anis-next

#7028

    ......@@ -151,7 +151,7 @@ final class ArchiveAction extends AbstractAction
    foreach ($attributesSelected as $attribute) {
    $attributeLabel = $attribute->getLabel();
    $filePath = $this->dataPath . $dataset->getFullDataPath() . DIRECTORY_SEPARATOR . $row[$attributeLabel];
    if (file_exists($filePath)) {
    if (file_exists($filePath) && is_file($filePath)) {
    $zip->addFile($filePath, $row[$attributeLabel]);
    }
    }
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment