Skip to content

Commit

Permalink
Merge pull request #994 from SlovakNationalGallery/MG-79-fix-empty-path
Browse files Browse the repository at this point in the history
[import] fix empty iip dir path
  • Loading branch information
rastislav-chynoransky authored Apr 11, 2024
2 parents bbd4f2f + 0922377 commit 4f35470
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/ImportRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ public function files(): Collection

public function iipFiles(): Collection
{
if ($this->import->iip_dir_path === null) {
return collect();
}

$dir = sprintf(
'%s/%s',
$this->import->iip_dir_path,
Expand Down

0 comments on commit 4f35470

Please sign in to comment.