diff --git a/course/format/classes/stateactions.php b/course/format/classes/stateactions.php index c0a35a19455..7927ea4921f 100644 --- a/course/format/classes/stateactions.php +++ b/course/format/classes/stateactions.php @@ -316,7 +316,7 @@ class stateactions { $maxsections = $format->get_max_sections(); if ($lastsectionnumber >= $maxsections) { - throw new moodle_exception('maxsectionslimit', 'moodle', $maxsections); + throw new moodle_exception('maxsectionslimit', 'moodle', '', $maxsections); } $modinfo = get_fast_modinfo($course);