Skip to content

Commit 41458f0

Browse files
Merge pull request #423 from aonamrata/commentdata-notice
Fix PHP Notice in module.audio-video.riff.php
2 parents 940d50f + 69fe0c1 commit 41458f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getid3/module.audio-video.riff.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2034,7 +2034,7 @@ public static function parseComments(&$RIFFinfoArray, &$CommentsTargetArray) {
20342034
foreach ($RIFFinfoKeyLookup as $key => $value) {
20352035
if (isset($RIFFinfoArray[$key])) {
20362036
foreach ($RIFFinfoArray[$key] as $commentid => $commentdata) {
2037-
if (trim($commentdata['data']) != '') {
2037+
if (!empty($commentdata['data']) && trim($commentdata['data']) != '') {
20382038
if (isset($CommentsTargetArray[$value])) {
20392039
$CommentsTargetArray[$value][] = trim($commentdata['data']);
20402040
} else {

0 commit comments

Comments
 (0)