Commit a878c955 authored by fgm's avatar fgm Committed by Jeremy

Issue #1331018 by fgm: fix undefined index notices

parent b8f5c59e
......@@ -165,6 +165,7 @@ function _memcache_admin_stats_gets($stats) {
* Statistics report: calculate # of increments and decrements.
*/
function _memcache_admin_stats_counters($stats) {
$stats += array('incr_hits' => 0, 'incr_misses' => 0, 'decr_hits' => 0, 'decr_misses' => 0);
return t('!incr increments, !decr decrements', array('!incr' => number_format($stats['incr_hits'] + $stats['incr_misses']), '!decr' => number_format($stats['decr_hits'] + $stats['decr_misses'])));
}
......
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