diff options
author | Phil Davis <phil.davis@world.inf.org> | 2013-09-10 04:52:37 -0700 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-09-10 09:15:20 -0300 |
commit | c312ee8fe59e1e12d565d41d61dd090c63ac2dca (patch) | |
tree | 2a5a3598c0d6ab56ee9dcdb67cec7b65513a8b6d /etc | |
parent | 767afbb10ddfd49f06689de19b93ef2fe22f9ca5 (diff) | |
download | pfsense-c312ee8fe59e1e12d565d41d61dd090c63ac2dca.zip pfsense-c312ee8fe59e1e12d565d41d61dd090c63ac2dca.tar.gz |
Update an existing cron entry for pppoe periodic resets
The array variable name was incorrect in the test, so the existing cron entry was not being matched. Fixes #3192
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 0a5842d..d1dd455 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1428,8 +1428,8 @@ function handle_pppoe_reset($post_array) { } if (empty($item)) return; - if (isset($item['ID'])) - $config['cron']['item'][$item['ID']] = $item; + if (isset($itemhash['ID'])) + $config['cron']['item'][$itemhash['ID']] = $item; else $config['cron']['item'][] = $item; } |