Permalink
Browse files

MDL-15223 need to default backup_blogs for backup_course_silently not…

… to have PHP notice errors
  • Loading branch information...
1 parent 79c7b3a commit eb7687ea965efd2510c88a4e91f3b6441a752db4 jmg324 committed Jun 12, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 backup/lib.php
View
@@ -834,6 +834,7 @@ function backup_generate_preferences_artificially($course, $prefs) {
$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_blogs = (isset($prefs['backup_blogs']) ? $prefs['backup_blogs'] : 0);
$preferences->backup_course = $course->id;
backup_add_static_preferences($preferences);
return $preferences;

0 comments on commit eb7687e

Please sign in to comment.