notice fixes

git-svn-id: http://svn.automattic.com/wordpress/trunk@9541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-11-06 02:05:59 +00:00
parent 7effb8df55
commit 3b043a8308
2 changed files with 4 additions and 2 deletions

View File

@@ -849,6 +849,8 @@ function wp_insert_comment($commentdata) {
$comment_approved = 1;
if ( ! isset($user_id) )
$user_id = 0;
if ( ! isset($comment_type) )
$comment_type = '';
$result = $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->comments
(comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content, comment_approved, comment_agent, comment_type, comment_parent, user_id)