MDL-33681 course: cannot have a section called '0'.
commit8ad93cebfa33c6ebfeeac6cce5ba972cf90fb367
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:51:30 +0000 (12 17:51 +0100)
tree3170b903639098ff5fa1fd58fb6d10b92339e9d2
parent63e5ddeb20b197bb8cd41be68c181cae061ae0ff
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