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:
Phil Davis 2013-09-10 04:52:37 -07:00 committed by Renato Botelho
parent 767afbb10d
commit c312ee8fe5

View File

@ -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;
}