From: <k2...@us...> - 2005-12-21 17:24:44
|
Update of /cvsroot/tikiwiki/tiki/lib/trackers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13580 Modified Files: Tag: BRANCH-1-9 trkWithMirrorTablesLib.php Log Message: - if "Send copies of all activity in this tracker to this e-mail address:" was not set on tracker the email funcion sent email to empty email address - is value was not set warning was raised Index: trkWithMirrorTablesLib.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/trackers/trkWithMirrorTablesLib.php,v retrieving revision 1.1.2.7 retrieving revision 1.1.2.8 diff -u -d -r1.1.2.7 -r1.1.2.8 --- trkWithMirrorTablesLib.php 14 Oct 2005 22:47:55 -0000 1.1.2.7 +++ trkWithMirrorTablesLib.php 21 Dec 2005 17:24:36 -0000 1.1.2.8 @@ -728,7 +728,10 @@ } else { $name = $this->getOne("select `name` from `tiki_tracker_fields` where `fieldId`=?",array((int)$fieldId)); } - $value = $ins_fields["data"][$i]["value"]; + if (isset($ins_fields["data"][$i]["value"])) + { + $value = $ins_fields["data"][$i]["value"]; + } if (isset($ins_fields["data"][$i]["type"]) and ($ins_fields["data"][$i]["type"] == 'f' or $ins_fields["data"][$i]["type"] == 'j')) { $human_value = date('r',$ins_fields["data"][$i]["value"]); $the_data .= " $name = $human_value\n"; @@ -820,8 +823,11 @@ foreach ($emails as $email) { //var_dump($email); //var_dump($mail_data); - mail($email, encode_headers('['.$trackerName.'] '.tra('Tracker was modified at '). $_SERVER["SERVER_NAME"], 'utf-8'), $mail_data, "From: $sender_email\r\nContent-type: text/plain;charset=utf-8"); - //echo "$email, "; + if ($email!='') + { + mail($email, encode_headers('['.$trackerName.'] '.tra('Tracker was modified at '). $_SERVER["SERVER_NAME"], 'utf-8'), $mail_data, "From: $sender_email\r\nContent-type: text/plain;charset=utf-8"); + //echo "$email, "; + } } } else { // Use simple email |