Make WordPress Core


Ignore:
Timestamp:
11/07/2005 08:58:37 AM (20 years ago)
Author:
matt
Message:

Missing user line.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.