From: Michael Rubinsky Date: Sat, 10 Jan 2009 05:30:03 +0000 (-0500) Subject: IMP::getCacheOb() shouldn't return false if there is no cache configured, X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e751a9283893ad6559102e2bee9d529bf6ea4546;p=horde.git IMP::getCacheOb() shouldn't return false if there is no cache configured, it should return a Horde_Cache object that's not backed by any storage. --- diff --git a/imp/lib/IMP.php b/imp/lib/IMP.php index ee4507350..579c11d48 100644 --- a/imp/lib/IMP.php +++ b/imp/lib/IMP.php @@ -1938,10 +1938,6 @@ class IMP { global $conf; - if ($conf['cache']['driver'] == 'none') { - return false; - } - $cache = &Horde_Cache::singleton($conf['cache']['driver'], Horde::getDriverConfig('cache', $conf['cache']['driver'])); if (is_a($cache, 'PEAR_Error')) { Horde::fatal($cache, __FILE__, __LINE__);