index 59ca97dde940f913ad2185782c91d9591ff50a13..c32be66ae6821f9ddc0803b84ccebfa239378808 100644 (file)
continue;
}
continue;
}
- $entry_id = $task_id= 0;
+ $entry_id = $task_id= "";
/* Comment must be set correctly */
if(empty($comment)){
$desc = "";
}else{
/* Comment must be set correctly */
if(empty($comment)){
$desc = "";
}else{
- $task_id =preg_replace("/^.*taskid:([0-9]*).*$/","\\1",$comment);
- $entry_id=preg_replace("/^.*entryid:([0-9]*).*$/","\\1",$comment);
+ $task_id =preg_replace("/^.*taskid:([0-9a-z]*).*$/i","\\1",$comment);
+ $entry_id=preg_replace("/^.*entryid:([0-9a-z]*).*$/i","\\1",$comment);
$desc =preg_replace("/^.*desc:(.*)$/","\\1",$comment);
}
$desc =preg_replace("/^.*desc:(.*)$/","\\1",$comment);
}
- if($task_id == 0 || empty($task_id)){
+ if($task_id == "" || empty($task_id)){
$task_id = $this->get_new_id();
}
$task_id = $this->get_new_id();
}
- if($entry_id == 0 || empty($entry_id)){
+ if($entry_id == "" || empty($entry_id)){
$entry_id = $this->get_new_id();
}
$entry_id = $this->get_new_id();
}
return(TRUE);
}
return(TRUE);
}
- private function _add_entry($entry,$task_id = 0)
+ private function _add_entry($entry,$task_id = "")
{
{
- if($task_id == 0 || empty($task_id)){
+ if($task_id == "" || empty($task_id)){
$task_id = $this->get_new_id();
}
$entry['TASK_ID'] = $task_id;
$task_id = $this->get_new_id();
}
$entry['TASK_ID'] = $task_id;