summaryrefslogtreecommitdiffstats
path: root/wp-includes/comment.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-03-23 17:46:02 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-03-23 17:46:02 +0000
commit2e96b99ceb195735a641e299f3209840cc101052 (patch)
tree374954833d10017ae7adb6a031d54fd0dc36f3a2 /wp-includes/comment.php
parentbf6a271edebcceb76d6e378156e92fe72c1fbb18 (diff)
downloadwordpress-mu-2e96b99ceb195735a641e299f3209840cc101052.tar.gz
wordpress-mu-2e96b99ceb195735a641e299f3209840cc101052.tar.xz
wordpress-mu-2e96b99ceb195735a641e299f3209840cc101052.zip
Ryan casts an int and catches a fish, someone buy him a pint! merge to 5092
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@933 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/comment.php')
-rw-r--r--wp-includes/comment.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-includes/comment.php b/wp-includes/comment.php
index 7ed9d9c..6da2264 100644
--- a/wp-includes/comment.php
+++ b/wp-includes/comment.php
@@ -345,7 +345,7 @@ function wp_insert_comment($commentdata) {
('$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')
");
- $id = $wpdb->insert_id;
+ $id = (int) $wpdb->insert_id;
if ( $comment_approved == 1)
wp_update_comment_count($comment_post_ID);