Hi everyone,
trying to do some scheduling but had this error.
I have included the lines where the error originates with the hope that someone will give me a solution or a tip on how to avoid.
Notice: Undefined index: 0 in C:\xampp\htdocs\openaudit\audit_schedule.php on line 24
Code:
$daily_frq = (!is_null($cfg[$id])) ? $cfg[$id]['daily_frequency'] : 1;
Notice: Undefined index: 0 in C:\xampp\htdocs\openaudit\audit_schedule.php on line 52
Code:
<?php Get_Audit_Configs($cfg[$id]['config_id']); ?>
Notice: Undefined index: 0 in C:\xampp\htdocs\openaudit\audit_schedule.php on line 74
Code:
<input type="checkbox" onclick="toggleLogging(this)" size="20" id="check_log_disable" name="check_log_disable" <?php if ( $cfg[$id]['log_disabled'] ) { echo "CHECKED"; } ?>/>
Notice: Undefined index: 0 in C:\xampp\htdocs\openaudit\audit_schedule.php on line 77
Code:
<input type="checkbox" onclick="toggleEmail(this)" size="20" id="check_email_log" name="check_email_log" <?php if ( $cfg[$id]['email_log'] ) { echo "CHECKED"; } ?>/>
Infact I just noticed I have lots of "Undefined index:0" errors. How can work on this?