Make WordPress Core


Ignore:
Timestamp:
02/02/2008 06:42:09 PM (16 years ago)
Author:
ryan
Message:

Some notice fixes from Nazgul. fixes #3155

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r6551 r6711  
    730730
    731731    if ( !empty($post->post_password) ) { // if there's a password
    732         if ( $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password ) {  // and it doesn't match the cookie
     732        if ( !isset($_COOKIE['wp-postpass_' . COOKIEHASH]) || $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password ) {  // and it doesn't match the cookie
    733733            echo __('Enter your password to view comments');
    734734            return;
Note: See TracChangeset for help on using the changeset viewer.