MDL-36047 cache: Fixed up issues with PHP 5.3.2 and 5.3.7

This commit is contained in:
Sam Hemelryk
2012-10-15 12:35:23 +08:00
parent 61bfc2c13b
commit d4797177b5
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ class cache_config {
$plugin = $store['plugin'];
$class = 'cachestore_'.$plugin;
$exists = array_key_exists($plugin, $availableplugins);
if (!$exists && (!class_exists($class) || !is_subclass_of($class, 'cache_store'))) {
if (!$exists) {
// Not a valid plugin, or has been uninstalled, just skip it an carry on.
debugging('Invalid cache store in config. Not an available plugin.', DEBUG_DEVELOPER);
continue;