change value of PARAM_RAW from 0 to 666, becasue we need to detect incorrect param types (such as PARAM_IND) and incorrect order - optional_param('xx', PARAM_INT, 0)
change value of PARAM_RAW from 0 to 666, becasue we need to detect incorrect param types (such as PARAM_IND) and incorrect order - optional_param('xx', PARAM_INT, 0)

This might break faulty code...

dilawar/moodle