Skip to content
Snippets Groups Projects
Commit 8833395a authored by Jeremy Andrews's avatar Jeremy Andrews
Browse files

Issue #2848252 by lhridley, Jeremy: drush clear-cache results in: ...

Issue #2848252 by lhridley, Jeremy: drush clear-cache results in:  array_merge(): Argument #2 is not an array dmemcache.inc:404
parent 7f78336b
No related branches found
No related tags found
No related merge requests found
......@@ -399,17 +399,20 @@ function dmemcache_get_multi($keys, $bin = 'cache', $mc = NULL) {
$results = @$mc->get($full_keys);
// Order is not guaranteed, map responses to order of requests.
$keys = array_fill_keys($full_keys, NULL);
$results = array_merge($keys, $results);
if (!empty($php_errormsg)) {
register_shutdown_function('watchdog', 'memcache', 'Exception caught in dmemcache_get_multi: !msg', array('!msg' => $php_errormsg), WATCHDOG_WARNING);
$php_errormsg = '';
}
ini_set('track_errors', $track_errors);
// Order is not guaranteed, map responses to order of requests.
if (is_array($results)) {
$keys = array_fill_keys($full_keys, NULL);
$results = array_merge($keys, $results);
}
}
}
// If $results is FALSE, convert it to an empty array.
if (!$results) {
$results = array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment