removed lesson_clean_data_submitted() function. Removed all instances of its use before I did this

This commit is contained in:
michaelpenne
2005-03-10 20:51:26 +00:00
parent d0b8bcdc8b
commit 1c97019eaf
-25
View File
@@ -1143,31 +1143,6 @@ function lesson_check_nickname($name) {
return true;
}
/*******************************************************************/
function lesson_clean_data_submitted() {
// this function runs through all post/get data submitted to a page
// and runs clean_param on each
// returns an object
// get the data
if ($form = data_submitted()) {
// run through and clean each form value
// detect arrays as well and process them accordingly
foreach ($form as $valuename => $formvalue) {
if (is_array($formvalue)) {
foreach ($formvalue as $index => $formsubvalue) {
$formvalue[$index] = clean_param($formsubvalue, PARAM_CLEAN);
}
$form->$valuename = $formvalue;
} else {
$form->$valuename = clean_param($formvalue, PARAM_CLEAN);
}
}
}
return $form;
}
/// CDC-FLAG ///
?>