From 79ba2bfeac68b4b89bc2f63d2b60a7c97aa9971a Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 11 Dec 2008 18:03:40 +0000 Subject: [PATCH] Bug isNumeric doesnt exist --- include/class_todo_list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class_todo_list.php b/include/class_todo_list.php index 997e027e2..aac54206e 100644 --- a/include/class_todo_list.php +++ b/include/class_todo_list.php @@ -65,7 +65,7 @@ class Todo_List exit (__FILE__.":".__LINE__.'Erreur attribut inexistant'); } public function check($p_idx,&$p_value) { - if ( strcmp ($p_idx, 'tl_id') == 0 ) { if ( strlen($p_value) > 6 || isNumeric ($p_value) == false) return false;} + if ( strcmp ($p_idx, 'tl_id') == 0 ) { if ( strlen($p_value) > 6 || isNumber ($p_value) == false) return false;} if ( strcmp ($p_idx, 'tl_date') == 0 ) { if ( strlen($p_value) > 12 || isDate ($p_value) == false) return false;} if ( strcmp ($p_idx, 'tl_title') == 0 ) { $p_value=subsrt(htmlentities($p_value),0,120) ; return true;} if ( strcmp ($p_idx, 'tl_desc') == 0 ) { $p_value=substr(htmlentities($p_value),0,400) ; return true;}