MDL-31314 gradebook restore: fix category.depth on restore.
commita3b0c9462f050904d0b279aa703b03abb3b0fbe2
authorTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 20 Jan 2012 15:53:05 +0000 (20 15:53 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 30 Jan 2012 12:31:30 +0000 (30 12:31 +0000)
treee6b1df303f16b35828fa5d302ea2d3b265e50c2f
parentd4b3034bb4232bb4f472a93adcb251f32ba0420a
MDL-31314 gradebook restore: fix category.depth on restore.

Without this, restoring backups made with the OU's custom 'restore from
1.9' feature, and possibly other people's custom converstion code, does
not work properly.

Also, fix poor recordset code.
backup/moodle2/restore_stepslib.php