merged cleaning of array params from HEAD

This commit is contained in:
skodak
2005-10-31 22:10:09 +00:00
parent df7f761f53
commit 164099fd14
+8
View File
@@ -185,6 +185,14 @@ function clean_param($param, $options) {
global $CFG;
if (is_array($param)) { // Let's loop
$newparam = array();
foreach ($param as $key => $value) {
$newparam[$key] = clean_param($value, $options);
}
return $newparam;
}
if (!$options) {
return $param; // Return raw value
}