[dev] patch for weather.com block

Rick Emery rick at emery.homelinux.net
Fri Feb 27 17:34:14 PST 2004


This patch fixes the weather.com block to comply with the new configuration
changes.

Thanks,
Rick

--
Rick Emery

"When once you have tasted flight, you will forever walk the Earth
 with your eyes turned skyward, for there you have been, and there
 you will always long to return"
                                              -- Leonardo Da Vinci
-------------- next part --------------
Index: weatherdotcom.php
===================================================================
RCS file: /repository/horde/lib/Block/weatherdotcom.php,v
retrieving revision 1.10
diff -u -r1.10 weatherdotcom.php
--- weatherdotcom.php	19 Feb 2004 02:55:03 -0000	1.10
+++ weatherdotcom.php	28 Feb 2004 01:25:35 -0000
@@ -104,9 +104,9 @@
         $weatherDotCom = &Services_Weather::service("WeatherDotCom");
 
         $weatherDotCom->setAccountData(
-            (isset($conf['weatherdotcom']) ? $conf['weatherdotcom']['partner_id']
+            (isset($conf['weatherdotcom']['partner_id']) ? $conf['weatherdotcom']['partner_id']
             : ''),
-            (isset($conf['weatherdotcom']) ? $conf['weatherdotcom']['license_key']
+            (isset($conf['weatherdotcom']['license_key']) ? $conf['weatherdotcom']['license_key']
             : ''));
         if (!$cacheDir) {
             return PEAR::raiseError(


More information about the dev mailing list