aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/ipguard/ipguard.inc4
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();
}