]> git.mjollnir.org Git - moodle.git/commit
Some fixes for robustness (make sure variables exist before using them
authormoodler <moodler>
Mon, 25 Aug 2003 01:44:01 +0000 (01:44 +0000)
committermoodler <moodler>
Mon, 25 Aug 2003 01:44:01 +0000 (01:44 +0000)
commit830ce8241b7488f85a78cea28cbf24e1abdc3a9c
treefafe6461c4156c9ad8395b55616483e5e9c50263
parent7a3ca193d69a618c7a155c9a29a0a825034fc2bc
Some fixes for robustness (make sure variables exist before using them
because it flags errors when in debug mode).

Also, when specifying array values by name use quotes around the name

 eg  $array['value'] instead of $array[value]

Finally, I changed the way user restoring works (slightly).  Before, if a
restored user was found to be a course creator or an admin, then this
status was restored.  I don't think this is a good idea - it could lead
to security problems when copying a backup from one site to another,
or if that person's status has changed since the backup was made.
I think it's best to only restore what is actually part of the course,
ie teacher or student.

If this broke anything else let me know!
backup/restore_execute.html
backup/restorelib.php