MDL-33681 course: cannot have a section called '0'.
commitbb410a1eccc40a6ad902b7170ff4e143de8edda3
authorTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 12 Jun 2012 16:45:40 +0000 (12 17:45 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 12 Jun 2012 16:45:40 +0000 (12 17:45 +0100)
treeac9f482cb022ba7c3cb74c6d0d233ae4778d8779
parentf8dfdb524b3d6800cb29827491329f4f50f29154
MDL-33681 course: cannot have a section called '0'.

No reason to prevent this. It is just a matter of doing a proper test,
rather than the sloppy PHP !empty().
course/format/topics/lib.php
course/format/weeks/lib.php