fix some possible undefined indexes due to the change from yesno-selectbox to a checkbox, refs #645 fixes #1105

This commit is contained in:
Michael Kaufmann (d00p)
2012-06-25 09:27:39 +02:00
parent 40d68df86b
commit d89856fac0
11 changed files with 136 additions and 106 deletions

View File

@@ -101,7 +101,7 @@ if($page == 'cronjobs'
if(isset($_POST['send'])
&& $_POST['send'] == 'send')
{
$isactive = intval($_POST['isactive']);
$isactive = isset($_POST['isactive']) ? 1 : 0;
$interval_value = validate($_POST['interval_value'], 'interval_value', '/^([0-9]+)$/Di', 'stringisempty');
$interval_interval = validate($_POST['interval_interval'], 'interval_interval');
@@ -121,7 +121,7 @@ if($page == 'cronjobs'
}
else
{
#$isactive = makeyesno('isactive', '1', '0', $result['isactive']);
//$isactive = makeyesno('isactive', '1', '0', $result['isactive']);
// interval
$interval_nfo = explode(' ', $result['interval']);
$interval_value = $interval_nfo[0];
@@ -159,5 +159,3 @@ if($page == 'cronjobs'
*/
}
}
?>