mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
Merge branch '47917-28' of git://github.com/samhemelryk/moodle
This commit is contained in:
commit
1ebcb0080b
7
cache/stores/memcached/lib.php
vendored
7
cache/stores/memcached/lib.php
vendored
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user