From: Gunnar Wrobel Date: Mon, 27 Apr 2009 18:45:27 +0000 (+0200) Subject: Ensure Horde_Cache is an optional dependency. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c40264b21bd13233c9b6af8a6b9da2037ef802db;p=horde.git Ensure Horde_Cache is an optional dependency. --- diff --git a/framework/Kolab_Server/lib/Horde/Kolab/Server.php b/framework/Kolab_Server/lib/Horde/Kolab/Server.php index 85b6c3487..b3a996b45 100644 --- a/framework/Kolab_Server/lib/Horde/Kolab/Server.php +++ b/framework/Kolab_Server/lib/Horde/Kolab/Server.php @@ -206,7 +206,8 @@ abstract class Horde_Kolab_Server function shutdown() { if (isset($this->attributes)) { - if (!empty($GLOBALS['conf']['kolab']['server']['cache']['driver'])) { + if (!empty($GLOBALS['conf']['kolab']['server']['cache']['driver']) + && class_exists('Horde_Cache')) { $params = isset($GLOBALS['conf']['kolab']['server']['cache']['params']) ? $GLOBALS['conf']['kolab']['server']['cache']['params'] : null; $cache = Horde_Cache::singleton($GLOBALS['conf']['kolab']['server']['cache']['driver'], @@ -387,7 +388,8 @@ abstract class Horde_Kolab_Server static $lifetime; if (!isset($this->attributes)) { - if (!empty($GLOBALS['conf']['kolab']['server']['cache']['driver'])) { + if (!empty($GLOBALS['conf']['kolab']['server']['cache']['driver']) + && class_exists('Horde_Cache')) { $params = isset($GLOBALS['conf']['kolab']['server']['cache']['params']) ? $GLOBALS['conf']['kolab']['server']['cache']['params'] : null; $cache = Horde_Cache::singleton($GLOBALS['conf']['kolab']['server']['cache']['driver'],