Skip to content

Commit

Permalink
Merge pull request #217 from ben-xo/master
Browse files Browse the repository at this point in the history
Fix Error: Trying to access array offset on value of type bool
  • Loading branch information
JamesHeinrich committed Dec 21, 2019
2 parents 4713528 + 2f8e92f commit 62740b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getid3/module.audio.mp3.php
Original file line number Diff line number Diff line change
Expand Up @@ -1788,7 +1788,7 @@ public static function MPEGaudioHeaderBytesValid($head4, $allowBitrate15=false)
* @return bool
*/
public static function MPEGaudioHeaderValid($rawarray, $echoerrors=false, $allowBitrate15=false) {
if (($rawarray['synch'] & 0x0FFE) != 0x0FFE) {
if (!$rawarray || ($rawarray['synch'] & 0x0FFE) != 0x0FFE) {
return false;
}

Expand Down

0 comments on commit 62740b6

Please sign in to comment.