MDL-26796 convert array parameter cleaning to new functions

This commit is contained in:
Petr Skoda
2011-08-18 08:40:33 +02:00
parent 923aff64fa
commit 18bd7573d6
22 changed files with 48 additions and 34 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ require_once("../config.php");
require_once($CFG->dirroot .'/notes/lib.php');
$id = required_param('id', PARAM_INT); // course id
$users = optional_param('userid', array(), PARAM_INT); // array of user id
$users = optional_param_array('userid', array(), PARAM_INT); // array of user id
$content = optional_param('content', '', PARAM_RAW); // note content
$state = optional_param('state', '', PARAM_ALPHA); // note publish state