WordPress.org

Make WordPress Core

Changeset 3537


Ignore:
Timestamp:
02/17/2006 01:00:18 AM (15 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

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