Skip to content

Commit bb9ae74

Browse files
committed
set comments key if not available :fixes #17
1 parent c011af8 commit bb9ae74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GetId3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private function analyze()
7272
$info = $this->getId3()->analyze($this->file, $this->filesize, '', $this->fp);
7373

7474
//if comments doesn't exist, we will add it ourselves
75-
isset($info['comments']) ? $info['comments'] : ($info + $comments);
75+
$info = isset($info['comments']) ? $info : array_merge($info , $comments);
7676

7777
if (! isset($info['comments']) && ! isset($info['tags'])) {
7878
$info = isset($info['id3v2']['comments']) ? array_merge($info,

0 commit comments

Comments
 (0)