Fixed a misnamed/renamed variable probably due to a recent merge from stable that used the old var name.
Fixed a misnamed/renamed variable probably due to a recent merge from stable that used the old var name.

dilawar/moodle