Permalink
Browse files

added new gradebook preference for backup silently function to avoid …

…notice errors later in backup process.
  • Loading branch information...
1 parent ffa1695 commit 402b744fd6ceddc6cb754b3566abe8c9ab2a0f31 jmg324 committed Mar 25, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 backup/lib.php
View
@@ -847,6 +847,7 @@ function backup_generate_preferences_artificially($course, $prefs) {
$preferences->backup_course_files = (isset($prefs['backup_course_files']) ? $prefs['backup_course_files'] : 0);
$preferences->backup_site_files = (isset($prefs['backup_site_files']) ? $prefs['backup_site_files'] : 0);
$preferences->backup_messages = (isset($prefs['backup_messages']) ? $prefs['backup_messages'] : 0);
+ $preferences->backup_gradebook_history = (isset($prefs['backup_gradebook_history']) ? $prefs['backup_gradebook_history'] : 0);
$preferences->backup_course = $course->id;
backup_add_static_preferences($preferences);
return $preferences;

0 comments on commit 402b744

Please sign in to comment.