From 2e96b99ceb195735a641e299f3209840cc101052 Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 23 Mar 2007 17:46:02 +0000 Subject: 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 --- wp-admin/edit-comments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wp-admin/edit-comments.php') diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 9307b90..0557270 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -56,7 +56,7 @@ if ( !empty( $_POST['delete_comments'] ) ) : $i = 0; foreach ($_POST['delete_comments'] as $comment) : // Check the permissions on each $comment = (int) $comment; - $post_id = $wpdb->get_var("SELECT comment_post_ID FROM $wpdb->comments WHERE comment_ID = $comment"); + $post_id = (int) $wpdb->get_var("SELECT comment_post_ID FROM $wpdb->comments WHERE comment_ID = $comment"); // $authordata = get_userdata( $wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $post_id") ); if ( current_user_can('edit_post', $post_id) ) { if ( !empty( $_POST['spam_button'] ) ) -- cgit