Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-15223 need to default backup_blogs for backup_course_silently not…

… to have PHP notice errors
  • Loading branch information...
commit 7b8c3081a02a2ff1c1f316622b213b58b4085846 1 parent 9075e36
jmg324 authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  backup/lib.php
View
1  backup/lib.php
@@ -848,6 +848,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;
Please sign in to comment.
Something went wrong with that request. Please try again.