--- yr_verdata/yr_verdata.module	2009-09-12 12:49:34.000000000 +0200
+++ yr_verdata/yr_verdataNew.module	2009-09-12 12:49:50.000000000 +0200
@@ -75,7 +75,6 @@ function yr_verdata_perm() {
  * Returns either a formatted page with forecast for a location, or a list of all locations.
  */
 function yr_verdata_page($yid = 0) {
-  (int) $yid;
   $sql = "SELECT * FROM {yr_verdata}";
   if ($yid == 0) {
     $result = db_query($sql);
@@ -243,7 +242,7 @@ function theme_yr_verdata_location_page(
 
     // We need for the template to know if this was the last period of the day, to facilitate sexier styling.
     $open = (($i == 0) || ($last_period == 3) || (($tab['period'] == 2) && ($last_period != 1))) ? '<div class="yr-period-day clear-block">' : '';
-    $close = (($tab['period'] == 3) || (($tab['period'] == 2) && ($last_period != 1))) ? '</div>' : '';
+    $close = (($tab['period'] == 3) || (($tab['period'] == 2) && ($last_period != 1) && ($i != 0))) ? '</div>' : '';
 
     // Assign the calculated and other values.
     $location['symbol_forecast'][] = array('open' => $open, 
