From c40264b21bd13233c9b6af8a6b9da2037ef802db Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel
Date: Mon, 27 Apr 2009 20:45:27 +0200 Subject: [PATCH] Ensure Horde_Cache is an optional dependency. --- framework/Kolab_Server/lib/Horde/Kolab/Server.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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'], -- 2.11.0