Fixed a warning message showing up on Moodle 2.6