Fixed error in my previous commit, unknown parametery type 0.

This commit is contained in:
skodak
2006-03-06 06:25:33 +00:00
parent 70070c1f88
commit 96e98ea67f
+3
View File
@@ -329,6 +329,9 @@ function clean_param($param, $type) {
}
switch ($type) {
case PARAM_RAW: // no cleaning at all
return $param;
case PARAM_CLEAN: // General HTML cleaning, try to use more specific type if possible
if (is_numeric($param)) {
return $param;