Permalink
Browse files

Solved hh (horrible-hidden) bug in backup_scheduled code.

  • Loading branch information...
1 parent 8529d9b commit e59fded4ef8d9f9b8bb742dc65d7ad2f9e69dc72 stronk7 committed Aug 21, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 backup/backup_scheduled.php
View
4 backup/backup_scheduled.php
@@ -408,8 +408,8 @@ function schedule_backup_course_configure($course,$starttime = 0) {
if (empty($preferences->mods[$mod->modname]->instances)) {
$preferences->mods[$mod->modname]->instances = array(); // avoid warnings
}
- $preferences->mods[$mod->modname]->instances[$mod->instance]->backup = $preferences->mods[$modname]->backup;
- $preferences->mods[$mod->modname]->instances[$mod->instance]->userinfo = $preferences->mods[$modname]->userinfo;
+ $preferences->mods[$mod->modname]->instances[$mod->instance]->backup = $preferences->mods[$mod->modname]->backup;
+ $preferences->mods[$mod->modname]->instances[$mod->instance]->userinfo = $preferences->mods[$mod->modname]->userinfo;
// there isn't really a nice way to do this...
$preferences->mods[$mod->modname]->instances[$mod->instance]->name = get_field($mod->modname,'name','id',$mod->instance);
}

0 comments on commit e59fded

Please sign in to comment.