summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorbcyrill <cyrill@bannwart.info>2012-07-06 12:30:21 +0200
committerbcyrill <cyrill@bannwart.info>2012-07-06 12:30:21 +0200
commit3392eba9e8d7925c751a7f46a3b33f904eda9a2e (patch)
tree8de41719d4a0cfdd2c8ab1c6f261fa8e46caf75a /usr/local/www
parent40ffeccc245aefd52a9fef87d74d7e13836f65e3 (diff)
downloadpfsense-3392eba9e8d7925c751a7f46a3b33f904eda9a2e.zip
pfsense-3392eba9e8d7925c751a7f46a3b33f904eda9a2e.tar.gz
Add additional check
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/status_services.php2
-rw-r--r--usr/local/www/widgets/widgets/services_status.widget.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php
index 06b52cd..69f54e9 100755
--- a/usr/local/www/status_services.php
+++ b/usr/local/www/status_services.php
@@ -341,7 +341,7 @@ if (is_array($config['igmpproxy']['igmpentry']) && (count($config['igmpproxy']['
$services[] = $pconfig;
}
-if($config['installedpackages']['miniupnpd']['config'][0]['enable']) {
+if (isset($config['installedpackages']['miniupnpd']) && $config['installedpackages']['miniupnpd']['config'][0]['enable']) {
$pconfig = array();
$pconfig['name'] = "miniupnpd";
$pconfig['description'] = gettext("UPnP Service");
diff --git a/usr/local/www/widgets/widgets/services_status.widget.php b/usr/local/www/widgets/widgets/services_status.widget.php
index 58538fa..3f4c924 100644
--- a/usr/local/www/widgets/widgets/services_status.widget.php
+++ b/usr/local/www/widgets/widgets/services_status.widget.php
@@ -134,7 +134,7 @@ if (is_array($config['igmpproxy']['igmpentry']) && (count($config['igmpproxy']['
$services[] = $svcconfig;
}
-if($config['installedpackages']['miniupnpd']['config'][0]['enable']) {
+if (isset($config['installedpackages']['miniupnpd']) && $config['installedpackages']['miniupnpd']['config'][0]['enable']) {
$svcconfig = array();
$svcconfig['name'] = "miniupnpd";
$svcconfig['description'] = gettext("UPnP Service");
OpenPOWER on IntegriCloud