aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-11 08:25:15 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-11 08:25:15 +0200
commit83fcddda48f441d4a8172eb429b3f8f5100af8e4 (patch)
tree5d4747fd3f07954f7936fa016917c564f607be8f
parent5258cd801edee2afe9b1bceacb4c7cfca3dc9357 (diff)
downloadpfsense-packages-83fcddda48f441d4a8172eb429b3f8f5100af8e4.tar.gz
pfsense-packages-83fcddda48f441d4a8172eb429b3f8f5100af8e4.tar.bz2
pfsense-packages-83fcddda48f441d4a8172eb429b3f8f5100af8e4.zip
ipguard - 2.1.x compatible boot check
-rw-r--r--config/ipguard/ipguard.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/ipguard/ipguard.inc b/config/ipguard/ipguard.inc
index 53284c96..68e08e9f 100644
--- a/config/ipguard/ipguard.inc
+++ b/config/ipguard/ipguard.inc
@@ -41,7 +41,11 @@ function ipguard_custom_php_write_config() {
global $g, $config;
/* Detect boot process and do nothing */
- if (platform_booting()) {
+ if (function_exists("platform_booting")) {
+ if (platform_booting()) {
+ return;
+ }
+ } elseif ($g['booting']) {
return;
}