[kronolith] kronolith_import and kronolith_replace broken

Chuck Hagenbuch chuck at horde.org
Mon Apr 5 07:50:20 PDT 2004


Quoting Karsten Fourmont <fourmont at gmx.de>:

> On the other hand this might rather be a bug in
> framework/iCalender/iCalender.php Horde_iCalender::getAttribute(): the inline
> doc for this function says it's supposed to return false on nonexistant
> attributes while in fact it returns a Pear_Error.

Docs fixed, thanks.

> Then kronolith/lib/api.php requires the following change: line 230 from
>         $event->setID($content->getAttribute('UID'));
> to
>         $id = $content->getAttribute('UID');
>         if (!is_a($id, 'PEAR_Error')) {
>             $event->setID($id);
>         }

Committed, thanks.

-chuck

--
"Regard my poor demoralized mule!" - Juan Valdez


More information about the kronolith mailing list