From 1c97019eaf239376605c3dd214661666ea7ce1a0 Mon Sep 17 00:00:00 2001 From: michaelpenne Date: Thu, 10 Mar 2005 20:51:26 +0000 Subject: [PATCH] removed lesson_clean_data_submitted() function. Removed all instances of its use before I did this --- mod/lesson/locallib.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/mod/lesson/locallib.php b/mod/lesson/locallib.php index 1b4f8c5480b..de4f0a65e2c 100644 --- a/mod/lesson/locallib.php +++ b/mod/lesson/locallib.php @@ -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 /// ?>