Package: horde3
Version: 3.0.7-1
Severity: minor

Attached a diff for weatherdotcom.php which fixes this bug


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.12-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages horde3 depends on:
ii  apache2                      2.0.54-5    next generation, scalable, extenda
ii  apache2-mpm-prefork [httpd]  2.0.54-5    traditional model for Apache2
ii  libapache2-mod-php4 [phpapi- 4:4.3.10-16 server-side, HTML-embedded scripti
ii  php4-cli [phpapi-20020918]   4:4.3.10-16 command-line interpreter for the p
ii  php4-domxml                  4:4.3.10-16 XMLv2 module for php4
ii  php4-pear                    4:4.3.10-16 PEAR - PHP Extension and Applicati
ii  php4-pear-log                1.6.0-1.1   Log module for PEAR

-- no debconf information
--- weatherdotcom.php   2005-12-05 22:58:51.000000000 +0100
+++ /usr/share/horde3/lib/Block/weatherdotcom.php       2005-11-22 
22:47:35.000000000 +0100
@@ -36,8 +36,8 @@
      */
     function _params()
     {
-        if (!(@include_once 'Services/Weather.php') ||
-            !(@include_once 'Cache.php') ||
+        if ([EMAIL PROTECTED] 'Services/Weather.php' ||
+            [EMAIL PROTECTED] 'Cache.php' ||
             !ini_get('allow_url_fopen')) {
             Horde::logMessage('The weather.com block will not work without the 
PEARServices_Weather and Cache packages, and allow_url_fopen enabled. Run pear 
install Services_Weather Cache, and ensure that allow_url_fopen_wrappers is 
enabled in php.ini.',
                               __FILE__, __LINE__, PEAR_LOG_ERR);
@@ -101,8 +101,8 @@
      */
     function _content()
     {
-        if (!(@include_once 'Services/Weather.php') ||
-            !(@include_once 'Cache.php') ||
+        if ([EMAIL PROTECTED] 'Services/Weather.php' ||
+            [EMAIL PROTECTED] 'Cache.php' ||
             !ini_get('allow_url_fopen')) {
             Horde::logMessage('The weather.com block will not work without the 
PEARServices_Weather and Cache packages, and allow_url_fopen enabled. Run pear 
install Services_Weather Cache, and ensure that allow_url_fopen_wrappers is 
enabled in php.ini.',
                               __FILE__, __LINE__, PEAR_LOG_ERR);

Reply via email to