updated lesson_calculate_ongoing_score to match the grading algorithm used in view.php.  Also suppressed a warning in lesson_print_tree_link_menu function.
updated lesson_calculate_ongoing_score to match the grading algorithm used in view.php.  Also suppressed a warning in lesson_print_tree_link_menu function.

dilawar/moodle