summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dnsmasq.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-05-15 13:45:56 -0400
committerjim-p <jimp@pfsense.org>2012-05-15 13:45:56 -0400
commite37eeb4973d5e900193b9e748947b0e016d5708e (patch)
treeb7b5351bea9210334e87d84cc27d7a7cfef620ae /usr/local/www/services_dnsmasq.php
parentc886fed9ba6a19fface58c918be5d7b111cca1f3 (diff)
downloadpfsense-e37eeb4973d5e900193b9e748947b0e016d5708e.zip
pfsense-e37eeb4973d5e900193b9e748947b0e016d5708e.tar.gz
Only process this if it's an array
Diffstat (limited to 'usr/local/www/services_dnsmasq.php')
-rwxr-xr-xusr/local/www/services_dnsmasq.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/services_dnsmasq.php b/usr/local/www/services_dnsmasq.php
index 9dbfc3a..736be45 100755
--- a/usr/local/www/services_dnsmasq.php
+++ b/usr/local/www/services_dnsmasq.php
@@ -277,6 +277,7 @@ function show_advanced_dns() {
</tr>
</table>
</tr>
+ <?php if ($hostent['aliases']['item'] && is_array($hostent['aliases']['item'])): ?>
<?php foreach ($hostent['aliases']['item'] as $alias): ?>
<tr>
<td class="listlr" ondblclick="document.location='services_dnsmasq_edit.php?id=<?=$i;?>';">
@@ -296,6 +297,7 @@ function show_advanced_dns() {
</td>
</tr>
<?php endforeach; ?>
+ <?php endif; ?>
<?php $i++; endforeach; ?>
</tbody>
<tfoot>
OpenPOWER on IntegriCloud