summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy2017-02-19 23:44:40 (GMT)
committerJeremy Andrews2017-02-19 23:44:40 (GMT)
commit8329b3d8b5b33a45de803ebbad8f694302c1f7c3 (patch)
treea4d3beea742f9531dbdeac7f560544238a5137fa
parentde47520276da818487cb4766fb751d0d306d2d5f (diff)
Issue #2853922 by Jeremy: Enabling memcache_admin error results in warning "Illegal offset type"
-rw-r--r--memcache_admin/memcache_admin.module5
1 files changed, 3 insertions, 2 deletions
diff --git a/memcache_admin/memcache_admin.module b/memcache_admin/memcache_admin.module
index b4c12ac..1d62279 100644
--- a/memcache_admin/memcache_admin.module
+++ b/memcache_admin/memcache_admin.module
@@ -61,8 +61,9 @@ function memcache_admin_menu() {
$clusters = array();
foreach ($memcache_servers as $server => $bin) {
if ($cluster = dmemcache_object_cluster($bin)) {
- $clusters[$cluster]['servers'][] = $server;
- $clusters[$cluster]['bin'] = _memcache_admin_get_bin_for_cluster($cluster['cluster']);
+ $name = $cluster['cluster'];
+ $clusters[$name]['servers'][] = $server;
+ $clusters[$name]['bin'] = _memcache_admin_get_bin_for_cluster($cluster['cluster']);
}
}