Преглед на файлове

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