Skip to content

Commit ef492e5

Browse files
Bug fix for countable
1 parent a69c0ce commit ef492e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils/Importer/Obje.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static function read($conn, \PhpGedcom\Record\Obje $obje, $group = '', $g
5656

5757
// store Note
5858
$files = $obje->getFile(); // Record/NoteRef array
59-
if ($files && count($files) > 0) {
59+
if (($files && count((is_countable($files)?$files:[])))) {
6060
foreach ($files as $item) {
6161
\ModularSoftware\LaravelGedcom\Utils\Importer\ObjeRef\File::read($conn, $item, $_group, $_gid);
6262
}

0 commit comments

Comments
 (0)