MDL-36580 backup: Avoid PHP notice restoring old backups
commit984470d8a1e15973c29619acc6f87733dc586fe5
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 24 Oct 2017 20:49:10 +0000 (24 22:49 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 24 Oct 2017 20:49:10 +0000 (24 22:49 +0200)
tree14c56cdad3530cf10adef3ead70402d3d2db7739
parent059079e9458c7ec59f98a423da848ec5f9e2cca0
MDL-36580 backup: Avoid PHP notice restoring old backups

Before this implementation, both resourcekey and password
were not being included in the backups, so old backups are
missing them. To keep upwards compatibility and avoid a PHP
Notice (undefined property), existence is checked via isset(),
that is the usual way all over the restore process.
mod/lti/backup/moodle2/restore_lti_stepslib.php