summaryrefslogtreecommitdiffstats
path: root/src/usr/local
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-09-13 14:34:18 -0300
committerRenato Botelho <renato@netgate.com>2016-09-13 14:34:18 -0300
commitc1973ae92049ba1197d6ab28f1b4bd303db73392 (patch)
tree26eda4ff0b8167d650e320cdf135321c82a015a8 /src/usr/local
parentefae02fccd6d8bddd8c4b3034b5fa472fb009ad6 (diff)
parentb2836666a8e7fc021ea750fafc8fc6e8097d52ff (diff)
downloadpfsense-c1973ae92049ba1197d6ab28f1b4bd303db73392.zip
pfsense-c1973ae92049ba1197d6ab28f1b4bd303db73392.tar.gz
Merge pull request #2616 from k-paulius/patch-pkg-syslog-v2
Diffstat (limited to 'src/usr/local')
-rw-r--r--src/usr/local/www/status_pkglogs.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/status_pkglogs.php b/src/usr/local/www/status_pkglogs.php
index 0248a5c..3070557 100644
--- a/src/usr/local/www/status_pkglogs.php
+++ b/src/usr/local/www/status_pkglogs.php
@@ -49,9 +49,9 @@ $i = 0;
$pkgwithlogging = false;
$apkg = $_GET['pkg'];
if (!$apkg) { // If we aren't looking for a specific package, locate the first package that handles logging.
- if ($config['installedpackages']['package'] <> "") {
+ if (isset($config['installedpackages']['package'])) {
foreach ($config['installedpackages']['package'] as $package) {
- if (is_array($package['logging'])) {
+ if (isset($package['logging']['logfilename']) && $package['logging']['logfilename'] != '') {
$pkgwithlogging = true;
$apkg = $package['name'];
$apkgid = $i;
OpenPOWER on IntegriCloud