MDL-41436 modinfo: Concatenate SQL fields instead of passing array
MDL-41565 events: fix unit test
MDL-37028 Integrity check for course modules and sections

This commit reinstates:
commit 0bac49dc1983824e4861086ed1ab9e13af99d76d
Author: Marina Glancy <marina@moodle.com>
Date:   Tue Sep 3 17:14:13 2013 +1000

    MDL-37028 Integrity check for course modules and sections

    If section mentioned in 'orphaned' module does not exist module is added to the first available section. Also corrected whitespaces

commit 1f0a9ce48b3e6f8c5dc6628aa692323909925032
Author: Marina Glancy <marina@moodle.com>
Date:   Mon Aug 12 14:06:48 2013 +1000

    MDL-37028 Integrity check for course modules and sections

    created function, unittest, build-in quick integrity check on each call to rebuild_course_cache()
    also added CLI script
MDL-37028 fixed course-module generation

still conditionlib should be using API functions and not inserting the data directly in DB but will fix in another issue
MDL-38267 assign: No Submit button after cut-off date
MDL-40833 theme - fixing centre align of sectionname headings