Skip to content

Commit

Permalink
Bugfix #257: undefined variables
Browse files Browse the repository at this point in the history
Replacement fix for #257
  • Loading branch information
JamesHeinrich committed Aug 11, 2020
1 parent babc32f commit 07af99b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion getid3/module.misc.torrent.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function NextEntity(&$TORRENT, &$offset) {
//echo '<li>int: '.$value.'</li>';
return (int) $value;
}
$this->error('unexpected('.__LINE__.') input "'.$char.'" at offset '.($offset - 1));
$this->error('unexpected('.__LINE__.') input "'.$value.'" at offset '.($offset - 1));
return false;

} elseif ($type == 'd') {
Expand All @@ -132,6 +132,7 @@ public function NextEntity(&$TORRENT, &$offset) {
// d5:apple3:red6:banana6:yellow5:lemon6:yellow6:violet4:bluee
$values = array();
//echo 'DICTIONARY @ '.$offset.'<ul>';
$info_dictionary_start = null; // dummy declaration to prevent "Variable might not be defined" warnings
while (true) {
if ($TORRENT[$offset] === 'e') {
break;
Expand Down

0 comments on commit 07af99b

Please sign in to comment.