diff --git a/dmemcache.inc b/dmemcache.inc index afe937b5a908e441dd74a698f609f2389da5938e..9f5f891ac9b0fbd6ec304c3a9cd1f44d93a51fde 100644 --- a/dmemcache.inc +++ b/dmemcache.inc @@ -137,6 +137,11 @@ function dmemcache_get_multi($keys, $bin = 'cache', $mc = NULL) { $values[] = isset($results[$key]) ? '1': '0'; $_memcache_statistics[] = $values; } + + // If $results is FALSE, convert it to an empty array. + if (!$results) { + $results = array(); + } return $results; }