Undefined variable: winds again

Hi,

Since 2 days it’s back again:


Notice: Undefined variable: winds in /var/www/vhosts/weersverwachtingen.eu/httpdocs/vooruitzicht.php on line 750

line 750 :


  }
   if ($i == 11 and ! $Bft) { $Bft = 12; };

   return($Bft);

  if ($wind < $winds[$i]) {
	    $Bft = $i;
		break;

I have Units in m/s and the last scripts from plaintext-parser:


global $showBeaufort,$BeaufortMPH,$BeaufortKPH,$BeaufortKTS,$BeaufortMS;
   switch ($units) {
case 'mph': $winds = $BeaufortMPH; break;
	 case 'kph': $winds = $BeaufortKPH; break;
	 case 'm/s': $winds = $BeaufortMS;  break;
	 case 'mps': $winds = $BeaufortMS;  break;
	 case 'kts': $winds = $BeaufortKTS; break;
   } // end switch
   $Bft = 0;
   for ($i=0;$i<12;$i++) {
      if ($wind < $winds[$i]) {
	    $Bft = $i;
		break;
	  }

Am I missing a var ?

http://www.weersverwachtingen.eu/vooruitzicht.php


Found it; it’s because:

Monday: Sunny in the morning, becoming partly cloudy in the afternoon. High 18.
Wind east near calm in the morning, becoming north-northeast in the afternoon.

near calm is no var wind and should be: <1 m/s in plaintext.txt

how to add this var

thanks