Make WordPress Core


Ignore:
Timestamp:
11/26/2009 11:29:54 AM (15 years ago)
Author:
azaozz
Message:

Fix notices and phpdoc, props hakre, fixes #10758

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-comments-post.php

    r12267 r12284  
    1818nocache_headers();
    1919
    20 $comment_post_ID = (int) $_POST['comment_post_ID'];
     20$comment_post_ID = isset($_POST['comment_post_ID']) ? (int) $_POST['comment_post_ID'] : 0;
    2121
    2222$status = $wpdb->get_row( $wpdb->prepare("SELECT post_status, comment_status FROM $wpdb->posts WHERE ID = %d", $comment_post_ID) );
Note: See TracChangeset for help on using the changeset viewer.