Changeset 3537

Show
Ignore:
Timestamp:
02/17/06 01:00:18 (3 years ago)
Author:
ryan
Message:

Make sure user_id is set before inserting. Props bungeman. fixes #2459

Files:

Legend:

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

    r3535 r3537  
    7979    if ( ! isset($comment_approved) ) 
    8080        $comment_approved = 1; 
     81    if ( ! isset($user_id) ) 
     82        $user_id = 0; 
    8183 
    8284    $result = $wpdb->query("INSERT INTO $wpdb->comments