From 91e8cb7cd2f46285e8125598303b70a7f5ce0678 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 11 Dec 2008 18:04:25 +0000 Subject: [PATCH] Bug substr --- 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 aac54206e..ab2f7e50b 100644 --- a/include/class_todo_list.php +++ b/include/class_todo_list.php @@ -67,7 +67,7 @@ class Todo_List public function check($p_idx,&$p_value) { 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_title') == 0 ) { $p_value=substr(htmlentities($p_value),0,120) ; return true;} if ( strcmp ($p_idx, 'tl_desc') == 0 ) { $p_value=substr(htmlentities($p_value),0,400) ; return true;} return true; }