Commit b49c96c9 authored by KarlShea's avatar KarlShea Committed by bdragon
Browse files

Issue #2997537 by KarlShea: Undefined method error on Statistics page

parent de03e20c
...@@ -70,10 +70,10 @@ class MemcacheStatisticsController extends ControllerBase { ...@@ -70,10 +70,10 @@ class MemcacheStatisticsController extends ControllerBase {
$stats = $stats[$bin]; $stats = $stats[$bin];
$aggregate = array_pop($stats); $aggregate = array_pop($stats);
if ($memcache->memcache() instanceof \Memcached) { if ($memcache->getMemcache() instanceof \Memcached) {
$version = t('Memcached v@version', ['@version' => phpversion('Memcached')]); $version = t('Memcached v@version', ['@version' => phpversion('Memcached')]);
} }
elseif ($memcache->memcache() instanceof \Memcache) { elseif ($memcache->getMemcache() instanceof \Memcache) {
$version = t('Memcache v@version', ['@version' => phpversion('Memcache')]); $version = t('Memcache v@version', ['@version' => phpversion('Memcache')]);
} }
else { else {
......
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