windwild/moodle-local_courseranker

sql中尽量别用内嵌参数

Closed this issue · 1 comments

比如:locallib.php中的$course_id,不要用字符串连接方式插入,而要使用get_records_sql的$params参数传递

done!