From 2a1d04c907b6b661d018c0328247e939789b0831 Mon Sep 17 00:00:00 2001 From: Johan Eklund Date: Sat, 7 Jan 2023 13:33:03 +0100 Subject: [PATCH] Fix variable might not be defined --- src/Imdb/Title.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Imdb/Title.php b/src/Imdb/Title.php index ac80b9ac..e5c3649c 100755 --- a/src/Imdb/Title.php +++ b/src/Imdb/Title.php @@ -1478,6 +1478,7 @@ protected function get_table_rows($html, $table_start) } $endtable = strpos($html, "", $row_s); $block = substr($html, $row_s, $endtable - $row_s); + $rows = array(); if (preg_match_all('!(.+?)!ims', $block, $matches)) { $rows = $matches[1]; } @@ -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]) {