MDL-13881 fixed silly logic bug when disabling rcache - patch by Matt Clarkson

This commit is contained in:
skodak
2008-03-11 09:04:29 +00:00
parent 0b82096d87
commit e1e2d33d8a
+4 -4
View File
@@ -311,15 +311,15 @@ global $HTTPSPAGEREQUIRED;
if ($CFG->cachetype === 'memcached' && !empty($CFG->memcachedhosts)) {
if (!init_memcached()) {
debugging("Error initialising memcached");
$CFG->cachetype = '';
$CFG->rcache = false;
}
$CFG->cachetype = '';
$CFG->rcache = false;
} else if ($CFG->cachetype === 'eaccelerator') {
if (!init_eaccelerator()) {
debugging("Error initialising eaccelerator cache");
$CFG->cachetype = '';
$CFG->rcache = false;
}
$CFG->cachetype = '';
$CFG->rcache = false;
}
} else { // just make sure it is defined