Commit 5314ae85 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix crashreport " PHP Warning: Illegal string offset 'item' in...

(legacy) fix crashreport " PHP Warning:  Illegal string offset 'item' in /usr/local/www/services_dnsmasq_edit.php on line 250"
parent 2f1872ee
......@@ -247,7 +247,7 @@ include("head.inc");
</tr>
<?php
$counter = 0;
if($pconfig['aliases']['item']):
if(isset($pconfig['aliases']['item']) && is_array($pconfig['aliases']['item']))):
foreach($pconfig['aliases']['item'] as $item):
$host = $item['host'];
$domain = $item['domain'];
......
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