fixed moodle 2.4 error: optional_param with array