예제 #1
0
     $body[] = '';
 }
 if ($params['comment']) {
     $body[] = $params['comment'];
     //no added line-breaks
     $body[] = '';
 }
 if ($params['sender']) {
     $body[] = $this->Lang('reporter', $params['sender']);
 }
 if ($save) {
     $body[] = '';
     $body[] = $this->Lang('processed');
 }
 $funcs = new tmtComm($this);
 list($res, $errmsg) = $funcs->TellOwner($bracket_id, $params['match'], $body);
 if ($res) {
     $msg = $this->Lang('sentok');
 } else {
     $msg = $this->Lang('notsent');
     if ($errmsg) {
         $msg .= '<br />' . $errmsg;
     }
 }
 if ($save) {
     $sql = 'UPDATE ' . $pref . 'module_tmt_matches SET playwhen=?, score=?,	status=? WHERE match_id=?';
     $db->Execute($sql, array($when, $score, $res, $params['match']));
     $t = $db->GenID($pref . 'module_tmt_history_seq');
     if ($params['sender']) {
         $by = $params['sender'];
     }