Code: Select all
if (array_key_exists($testfile, $filesfound)) {
Edit: Got it, in the month for loop $m is incremented before the range check, so when the loop exits $m=13
change line 326 to:
Code: Select all
if($y != $first_year) { $nav_build[$y]['months'][$m-1] .= "<br />\n";}
And finally changed 367-371 to:
Code: Select all
if (array_key_exists($testfile, $filesfound)) {
$advisory = "<br /><b>Report for $yr ";
if ($mo) {$advisory .= $months[$mo];}
$advisory .= "</b>\n";
$rpt = implode("",file("$NOAAdir/$testfile"));