Changeset 3004

Show
Ignore:
Timestamp:
11/07/05 08:58:37 (3 years ago)
Author:
matt
Message:

Missing user line.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/pluggable-functions.php

    r2976 r3004  
    241241     
    242242    $comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID='$comment_id' LIMIT 1"); 
    243     $post = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE ID='$comment->comment_post_ID' LIMIT 1"); 
     243    $post    = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE ID = '$comment->comment_post_ID' LIMIT 1"); 
     244    $user    = get_userdata( $post->post_author ); 
    244245 
    245246    if ('' == $user->user_email) return false; // If there's no email to send the comment to