Skip to content

Commit

Permalink
Merge pull request #423 from aonamrata/commentdata-notice
Browse files Browse the repository at this point in the history
Fix PHP Notice in module.audio-video.riff.php
  • Loading branch information
JamesHeinrich authored Oct 16, 2023
2 parents 940d50f + 69fe0c1 commit 41458f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getid3/module.audio-video.riff.php
Original file line number Diff line number Diff line change
Expand Up @@ -2034,7 +2034,7 @@ public static function parseComments(&$RIFFinfoArray, &$CommentsTargetArray) {
foreach ($RIFFinfoKeyLookup as $key => $value) {
if (isset($RIFFinfoArray[$key])) {
foreach ($RIFFinfoArray[$key] as $commentid => $commentdata) {
if (trim($commentdata['data']) != '') {
if (!empty($commentdata['data']) && trim($commentdata['data']) != '') {
if (isset($CommentsTargetArray[$value])) {
$CommentsTargetArray[$value][] = trim($commentdata['data']);
} else {
Expand Down

0 comments on commit 41458f0

Please sign in to comment.