Skip to content

Commit

Permalink
Fix variable might not be defined
Browse files Browse the repository at this point in the history
  • Loading branch information
jreklund committed Jan 7, 2023
1 parent 3fc34c5 commit 2a1d04c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Imdb/Title.php
Original file line number Diff line number Diff line change
Expand Up @@ -1478,6 +1478,7 @@ protected function get_table_rows($html, $table_start)
}
$endtable = strpos($html, "</table>", $row_s);
$block = substr($html, $row_s, $endtable - $row_s);
$rows = array();
if (preg_match_all('!<tr>(.+?)</tr>!ims', $block, $matches)) {
$rows = $matches[1];
}
Expand Down Expand Up @@ -2928,6 +2929,11 @@ public function awards($compat = true)
)) {
continue;
}

$won = false;
$award = "";
$outcome = "";

$ccount = count($col[0]);
for ($k = 0; $k < $ccount; ++$k) {
switch ($col['class'][$k]) {
Expand Down

0 comments on commit 2a1d04c

Please sign in to comment.