Skip to content

Commit

Permalink
bugfix: #217 array offset on value of type bool
Browse files Browse the repository at this point in the history
Tweak to #217
  • Loading branch information
JamesHeinrich committed Dec 21, 2019
1 parent 62740b6 commit b893ca5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion getid3/getid3.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class getID3
*/
protected $startup_warning = '';

const VERSION = '1.9.19-201912201038';
const VERSION = '1.9.19-201912211559';
const FREAD_BUFFER_SIZE = 32768;

const ATTACHMENTS_NONE = false;
Expand Down
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 || ($rawarray['synch'] & 0x0FFE) != 0x0FFE) {
if (!isset($rawarray['synch']) || ($rawarray['synch'] & 0x0FFE) != 0x0FFE) {
return false;
}

Expand Down

0 comments on commit b893ca5

Please sign in to comment.