diff options
author | doktornotor <notordoktor@gmail.com> | 2015-08-24 13:48:58 +0200 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-08-24 13:48:58 +0200 |
commit | dd52725cb8b87598a253e844ba4057291294b6d2 (patch) | |
tree | cc3a86b5138781906994b011dd5a57587c4d44fc /config | |
parent | 0a83b504c8a2d469c1d7ac056b42f136e92b87d5 (diff) | |
download | pfsense-packages-dd52725cb8b87598a253e844ba4057291294b6d2.tar.gz pfsense-packages-dd52725cb8b87598a253e844ba4057291294b6d2.tar.bz2 pfsense-packages-dd52725cb8b87598a253e844ba4057291294b6d2.zip |
ipguard.inc - no need for foreach() here
Diffstat (limited to 'config')
-rw-r--r-- | config/ipguard/ipguard.inc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/config/ipguard/ipguard.inc b/config/ipguard/ipguard.inc index 272e4d31..4e5c5eef 100644 --- a/config/ipguard/ipguard.inc +++ b/config/ipguard/ipguard.inc @@ -35,9 +35,7 @@ function ipguard_custom_php_deinstall_command() { stop_service('ipguard'); unlink_if_exists("/usr/local/etc/rc.d/ipguard.sh"); $files = glob("/usr/local/etc/ipguard_*.conf"); - foreach ($files as $file) { - unlink_if_exists($file); - } + unlink_if_exists($files); conf_mount_ro(); } |