IMP::getCacheOb() shouldn't return false if there is no cache configured,
authorMichael Rubinsky <mrubinsk@yosemite.localdomain>
Sat, 10 Jan 2009 05:30:03 +0000 (00:30 -0500)
committerMichael Rubinsky <mrubinsk@yosemite.localdomain>
Sat, 10 Jan 2009 05:30:03 +0000 (00:30 -0500)
it should return a Horde_Cache object that's not backed by any storage.

imp/lib/IMP.php

index ee45073..579c11d 100644 (file)
@@ -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__);