[Tickets #9272] missing require_once in iCalendar.php

bugs at horde.org bugs at horde.org
Wed Sep 29 16:13:28 UTC 2010


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/9272
------------------------------------------------------------------------------
  Ticket             | 9272
  Created By         | fabio.bas at officineinformatiche.net
  Summary            | missing  require_once in iCalendar.php
  Queue              | Horde Base
  Version            | 3.3.9
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


fabio.bas at officineinformatiche.net (2010-09-29 12:13) wrote:

 From the file horde-3.3.9/lib/Horde/iCalendar.php, in "function  
getAttributeValues($name)":
---
         if (!count($result)) {
             return PEAR::raiseError('Attribute "' . $name . '" Not Found');
         }
---
This misses a "require_once 'PEAR.php';" and causes a "PHP Fatal  
error:  Class 'PEAR' not found".
The previous function in the same file (getAttribute) already contains  
the "require_once" and works fine:
---
         if (!count($result)) {
             require_once 'PEAR.php';
             return PEAR::raiseError('Attribute "' . $name . '" Not Found');
---










More information about the bugs mailing list