diff --git a/phpgwapi/inc/horde/Horde/iCalendar.php b/phpgwapi/inc/horde/Horde/iCalendar.php index ffdc8a0072..9ba13ad0f3 100644 --- a/phpgwapi/inc/horde/Horde/iCalendar.php +++ b/phpgwapi/inc/horde/Horde/iCalendar.php @@ -49,8 +49,10 @@ class Horde_iCalendar { # require_once 'Horde/String.php'; $type = strtolower($type); $class = 'Horde_iCalendar_' . strtolower($type); - include_once dirname(__FILE__) . '/iCalendar/' . $type . '.php'; - if (class_exists($class)) { + if (!class_exists($class)) { + include_once dirname(__FILE__) . '/iCalendar/' . $type . '.php'; + } + if (class_exists($class)) { $component = &new $class(); if ($container !== false) { $component->_container = &$container;