summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-08-22 15:44:23 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-08-22 15:44:37 -0400
commit46acc5fb628d89351a5ef1bbcfb6484bd0e315a6 (patch)
tree4b6782b082af9e56aefc2e74f83c9cbe7d983c31 /etc
parent61fb5dca74b99ea29cfd41a10174a05b01d0ef59 (diff)
downloadpfsense-46acc5fb628d89351a5ef1bbcfb6484bd0e315a6.zip
pfsense-46acc5fb628d89351a5ef1bbcfb6484bd0e315a6.tar.gz
Only process after_filter_configure_run if it is an array
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index df0a507..f783255 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -294,8 +294,9 @@ function filter_configure_sync() {
/* run items scheduled for after filter configure run */
$fda = fopen("{$g['tmp_path']}/commands.txt", "w");
if ($fda) {
- foreach($after_filter_configure_run as $afcr)
- fwrite($fda, $afcr . "\n");
+ if($after_filter_configure_run)
+ foreach($after_filter_configure_run as $afcr)
+ fwrite($fda, $afcr . "\n");
/*
* we need a way to let a user run a shell cmd after each
* filter_configure() call. run this xml command after
OpenPOWER on IntegriCloud