I installed moodle 1.5, after that I got the below warning when a user review and reached to end of a lesson:
Warning: Variable passed to current() is not an array or object in /var/www/html/moodle/mod/lesson/view.php on line 1108
Warning: Variable passed to end() is not an array or object in /var/www/html/moodle/mod/lesson/view.php on line 1112
I never had this warning with moodle 1.4.5