mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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
This commit is contained in:
parent
767afbb10d
commit
c312ee8fe5
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user