Skip to content
Snippets Groups Projects
Commit bc2314e9 authored by hugronaphor's avatar hugronaphor Committed by Sascha Grossenbacher
Browse files

Issue #3161250 by hugronaphor, mhavelant: Undefined index notices on the report page

parent 943bf35c
No related branches found
No related tags found
No related merge requests found
......@@ -171,9 +171,9 @@ class ReportController extends ControllerBase {
if ($memory_config['maxmemory']) {
$memory_value = $this->t('@used_memory / @max_memory (@used_percentage%), maxmemory policy: @policy', [
'@used_memory' => $info['used_memory_human'],
'@used_memory' => $info['used_memory_human'] ?? $info['Memory']['used_memory_human'],
'@max_memory' => format_size($memory_config['maxmemory']),
'@used_percentage' => (int) ($info['used_memory'] / $memory_config['maxmemory'] * 100),
'@used_percentage' => (int) ($info['used_memory'] ?? $info['Memory']['used_memory'] / $memory_config['maxmemory'] * 100),
'@policy' => $memory_config['maxmemory-policy'],
]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment