diff options
author | Renato Botelho <renato@netgate.com> | 2016-01-20 15:21:22 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-01-20 15:22:00 -0200 |
commit | ca052b35b146bd7c7b5aaa07cf4ffe68dbfa1ced (patch) | |
tree | 6d62f40faa1ce8acd8ddc211f57d9a1006d95706 | |
parent | b5b8f1117b75321fc0b2d467941bca3e6e177f45 (diff) | |
download | pfsense-ca052b35b146bd7c7b5aaa07cf4ffe68dbfa1ced.zip pfsense-ca052b35b146bd7c7b5aaa07cf4ffe68dbfa1ced.tar.gz |
Initialize $stop_time inside foreach to make sure it resets to proper value each iteration since it's changed inside loop. Reported on https://github.com/pfsense/pfsense/pull/2487
-rw-r--r-- | etc/inc/captiveportal.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 0236ac9..2d1d173 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -655,8 +655,8 @@ function captiveportal_prune_old() { * If something is missed next run will catch it! */ $pruning_time = time(); - $stop_time = $pruning_time; foreach ($cpdb as $cpentry) { + $stop_time = $pruning_time; $timedout = false; $term_cause = 1; |