Commit 28c22500 authored by Jeremy's avatar Jeremy

Issue #2864451 by xdevx, Jeremy: Warning: Cannot use a scalar value as an array in

parent 25224fbc
......@@ -1103,6 +1103,9 @@ function dmemcache_piece_cache_set($cid, $exp = NULL) {
// Always refresh cached copy to minimize multi-thread race window.
$piece_cache = &drupal_static('dmemcache_piece_cache', array());
$piece_cache = dmemcache_get('__dmemcache_piece_cache');
if (!is_array($piece_cache)) {
$piece_cache = array();
}
if (isset($exp)) {
if ($exp <= 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment