Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 79684

Summary: Services_Weather pear bug with horde 3
Product: Gentoo Linux Reporter: Julien Allanos (RETIRED) <dju>
Component: Current packagesAssignee: PHP Bugs <php-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Julien Allanos (RETIRED) gentoo-dev 2005-01-27 01:48:44 UTC
There is a typo bug in horde-pear-1.3-r1, which appears when using horde-3 weather.com block. Suggested fix is to update Services_Weather pear package. The diff for /usr/lib/php/Services/Weather/Weatherdotcom.php is as follow:

--- Weatherdotcom.php.orig      2005-01-27 10:47:59.781788581 +0100
+++ Weatherdotcom.php   2005-01-27 10:48:10.653135035 +0100
@@ -446,7 +446,7 @@

         for ($i = 0; $i < $days; $i++) {
             $day = array(
-                "tempertureHigh" => $this->convertTemperature($this->_forecast->day[$i]->hi, "f", $units["temp"]),
+                "temperatureHigh" => $this->convertTemperature($this->_forecast->day[$i]->hi, "f", $units["temp"]),
                 "temperatureLow" => $this->convertTemperature($this->_forecast->day[$i]->low, "f", $units["temp"]),
                 "sunrise"        => date($this->_timeFormat, strtotime($this->_forecast->day[$i]->sunr)),
                 "sunset"         => date($this->_timeFormat, strtotime($this->_forecast->day[$i]->suns)),
Comment 1 Sebastian Bergmann (RETIRED) gentoo-dev 2005-02-15 00:14:57 UTC
Fixed in www-apps/horde-pear-1.3-r2.
Comment 2 Julien Allanos (RETIRED) gentoo-dev 2005-02-15 00:36:10 UTC
thanks, and welcome :)