diff options
author | jim-p <jimp@pfsense.org> | 2012-05-15 13:45:56 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-05-15 13:45:56 -0400 |
commit | e37eeb4973d5e900193b9e748947b0e016d5708e (patch) | |
tree | b7b5351bea9210334e87d84cc27d7a7cfef620ae /usr/local/www | |
parent | c886fed9ba6a19fface58c918be5d7b111cca1f3 (diff) | |
download | pfsense-e37eeb4973d5e900193b9e748947b0e016d5708e.zip pfsense-e37eeb4973d5e900193b9e748947b0e016d5708e.tar.gz |
Only process this if it's an array
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/services_dnsmasq.php | 2 |
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> |