浏览代码

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

Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
Kristian Feldsam 4 年之前
父节点
当前提交
bdf601ff28
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      data/web/debug.php

+ 1 - 1
data/web/debug.php

@@ -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; }