From 87dcfb1c1007c620d5588f59b8723354c1e4c6b8 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Thu, 18 May 2006 14:21:29 +0000 Subject: [PATCH] bugifx from jan --- phpgwapi/inc/horde/Horde/iCalendar.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;