MDL-33682 backup: cope with sections called '0'
authorTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 12 Jun 2012 16:46:47 +0000 (17:46 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 12 Jun 2012 16:46:47 +0000 (17:46 +0100)
commitff5d6f88722f5a01fd6c2423d24eb1e3201e0f8c
tree12d2b5e90a70fc326ce2aba4c372dfe01c645bd9
parentbb410a1eccc40a6ad902b7170ff4e143de8edda3
MDL-33682 backup: cope with sections called '0'

It was not previously possible to have a section called 0 because of
bugs in the standard course formats, but we hit this with the OU course
format. You got an exception because backup settings tested to see if
their lable was empty, which means a section name of '0' was fatal.
Should work now.
backup/backup.php
backup/moodle2/restore_stepslib.php
backup/util/factories/backup_factory.class.php
backup/util/ui/backup_ui_setting.class.php