Now, the "edited" field is included in backup/restore too.

This commit is contained in:
stronk7 2003-09-21 20:45:46 +00:00
parent 540fa20b31
commit 626aab5d67
2 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@
fwrite ($bf,full_tag("NOTES",4,false,$attendance->notes));
fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$attendance->timemodified));
fwrite ($bf,full_tag("DYNSECTION",4,false,$attendance->dynsection));
fwrite ($bf,full_tag("EDITED",4,false,$attendance->edited));
//if we've selected to backup users info, then execute backup_attendance_roll
if ($preferences->mods["attendance"]->userinfo) {
$status = backup_attendance_roll($bf,$preferences,$attendance->id);

View File

@ -47,6 +47,7 @@
$attendance->notes = backup_todb($info['MOD']['#']['NOTES']['0']['#']);
$attendance->timemodified = backup_todb($info['MOD']['#']['TIMEMODIFIED']['0']['#']);
$attendance->dynsection = backup_todb($info['MOD']['#']['DYNSECTION']['0']['#']);
$attendance->edited = backup_todb($info['MOD']['#']['EDITED']['0']['#']);
//The structure is equal to the db, so insert the attendance
$newid = insert_record ("attendance",$attendance);