Updating validation.

1.9.x
Julio Montoya 10 years ago
parent 5a5e6bc518
commit bf8e963fa7
  1. 6
      main/inc/lib/add_course.lib.inc.php

@ -2374,10 +2374,8 @@ function fill_db_course($course_id, $course_repository, $language, $fill_with_ex
Database::query("INSERT INTO $tbl_course_homepage VALUES ($course_id, NULL, '".TOOL_COURSE_MAINTENANCE."','course_info/maintenance.php','backup.gif','$visible_for_course_admin','1','','NO','_self', 'admin','0')");
$defaultEmailExerciseAlert = 1;
if (isset($_configuration['email_alert_manager_on_new_quiz']) &&
!empty($_configuration['email_alert_manager_on_new_quiz'])
) {
$defaultEmailExerciseAlert = $_configuration['email_alert_manager_on_new_quiz'];
if (isset($_configuration['email_alert_manager_on_new_quiz'])) {
$defaultEmailExerciseAlert = intval($_configuration['email_alert_manager_on_new_quiz']);
}
/* course_setting table (courseinfo tool) */

Loading…
Cancel
Save