Merge branch '47917-28' of git://github.com/samhemelryk/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2014-11-04 00:03:42 +01:00
commit 1ebcb0080b

View File

@ -302,16 +302,19 @@ class cachestore_memcached extends cache_store implements cache_is_configurable
* be set to false.
*/
public function get_many($keys) {
$return = array();
$result = $this->connection->getMulti($keys);
if (!is_array($result)) {
$result = array();
}
foreach ($keys as $key) {
if (!array_key_exists($key, $result)) {
$result[$key] = false;
$return[$key] = false;
} else {
$return[$key] = $result[$key];
}
}
return $result;
return $return;
}
/**