There may be a problem with this code. This is the error message I get at the end of the questions at the end of the lesson:
***************************************************
Notice: Undefined variable: duration in /home/(ny id)/public_html/(my domain)/mod/lesson/view.php on line 111 This page should automatically redirect. If nothing is happening please use the continue link below.
Error output, so disabling automatic redirect.
***********************************************************
Any ideas?