Git commits in Moodle 3.0.7 by Eugene Venter

commit c29df134e7c38ce4913fd3641106ee209be0b333
Author: Eugene Venter <eugene@catalyst.net.nz>
Date:   Tue, 01 Nov 2016 05:10:21 +0800
Tag:    v3.0.7

MDL-52216 mod_lesson: prevent invalid view modes