diff --git a/backup/backuplib.php b/backup/backuplib.php index 9098127a2bd..25665f8430a 100644 --- a/backup/backuplib.php +++ b/backup/backuplib.php @@ -776,6 +776,7 @@ fwrite ($bf,full_tag("TEA_ROLE",6,false,$tea->role)); fwrite ($bf,full_tag("EDITALL",6,false,$tea->editall)); fwrite ($bf,full_tag("TIMEMODIFIED",6,false,$tea->timemodified)); + fwrite ($bf,full_tag("TIMEACCESS",6,false,$tea->timeaccess)); //Print ROLE end fwrite ($bf,end_tag("ROLE",5,true)); } @@ -790,6 +791,7 @@ fwrite ($bf,full_tag("TIMESTART",6,false,$stu->timestart)); fwrite ($bf,full_tag("TIMEEND",6,false,$stu->timeend)); fwrite ($bf,full_tag("TIME",6,false,$stu->time)); + fwrite ($bf,full_tag("TIMEACCESS",6,false,$stu->timeaccess)); //Print ROLE end fwrite ($bf,end_tag("ROLE",5,true)); } diff --git a/backup/restorelib.php b/backup/restorelib.php index fe03f7c0f32..dc7d5d3ae40 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -1568,6 +1568,9 @@ case "TIME": $this->info->temprole->time = $this->getContents(); break; + case "TIMEACCESS": + $this->info->temprole->timeaccess = $this->getContents(); + break; } } }