[Web] Cast docker info as array in debug.php (#4256)

Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
master
Kristian Feldsam 2021-09-01 16:27:44 +02:00 committed by GitHub
parent 8f733a903b
commit bdf601ff28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ $clamd_status = (preg_match("/^([yY][eE][sS]|[yY])+$/", $_ENV["SKIP_CLAMD"])) ?
<div class="panel-body">
<ul class="list-group">
<?php
$containers = (docker('info'));
$containers = (array) docker('info');
ksort($containers);
foreach ($containers as $container => $container_info) {
if ($container == 'clamd-mailcow' && $clamd_status === false) { continue; }