From c5e1202f73b0aa416f9d1e460facad6b9093c05d Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 30 Apr 2006 16:52:48 +0000 Subject: [PATCH] r794: Forgot to remove the comment insert query --- newreport.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/newreport.php b/newreport.php index 3841055..8491514 100755 --- a/newreport.php +++ b/newreport.php @@ -30,6 +30,7 @@ $focus['newreport'] = 'focus'; require_once('./global.php'); require_once('./includes/functions_product.php'); require_once('./includes/api_bug.php'); +require_once('./includes/api_comment.php'); if (!can_perform('cansubmitbugs', intval($bugsys->in['productid']))) { @@ -134,17 +135,6 @@ if ($_POST['do'] == 'insert') $comment->set('comment', $_POST['comment']); $comment->insert(); - // insert the comment to the database - $db->query(" - INSERT INTO " . TABLE_PREFIX . "comment - (bugid, userid, dateline, comment, comment_parsed) - VALUES - ($bugid, " . $bugsys->userinfo['userid'] . ", - $time, '" . $bugsys->in['comment'] . "', - '" . nl2br($bugsys->in['comment_parsed']) . "' - )" - ); - $time = $comment->values['dateline']; $db->query(" -- 2.22.5