Show
Ignore:
Timestamp:
03/25/07 23:06:28 (1 year ago)
Author:
ryan
Message:

Some int casts

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.0/wp-admin/edit-comments.php

    r4656 r5099  
    4545    foreach ($_POST['delete_comments'] as $comment) : // Check the permissions on each 
    4646        $comment = (int) $comment; 
    47         $post_id = $wpdb->get_var("SELECT comment_post_ID FROM $wpdb->comments WHERE comment_ID = $comment"); 
     47        $post_id = (int) $wpdb->get_var("SELECT comment_post_ID FROM $wpdb->comments WHERE comment_ID = $comment"); 
    4848        $authordata = get_userdata( $wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $post_id") ); 
    4949        if ( current_user_can('edit_post', $post_id) ) :