Commit 40b10468 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix crashreport "PHP Warning: array_keys() expects parameter 1 to be...

(legacy) fix crashreport "PHP Warning:  array_keys() expects parameter 1 to be array, null given in /usr/local/www/diag_logs_filter_summary.php on line 140"
parent a99924f5
......@@ -137,6 +137,7 @@ include("head.inc"); ?>
<table class="table table-striped table-bordered">
<th><?=$fields[$field]?></th>
<th><?=gettext("Count");?></th>
<?php if (isset($data[$field])):?>
<?php foreach(array_keys($data[$field]) as $row): ?>
<tr>
<td>
......@@ -147,6 +148,7 @@ include("head.inc"); ?>
<td><?=$data[$field][$row]["value"]?></td>
</tr>
<?php endforeach ?>
<?php endif; ?>
</table>
</div>
</div>
......
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