Make WordPress Core

Changeset 559 for trunk/b2comments.php


Ignore:
Timestamp:
11/30/2003 12:55:19 AM (22 years ago)
Author:
mikelittle
Message:

Fixed several instances in WordPress where PHP Notices are not being handled correctly.
Fixes supplied by Aaron Jensen (aaron@…).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2comments.php

    r558 r559  
    1111        }
    1212
    13         $comment_author = trim($HTTP_COOKIE_VARS["comment_author_".$cookiehash]);
    14         $comment_author_email = trim($HTTP_COOKIE_VARS["comment_author_email_".$cookiehash]);
    15         $comment_author_url = trim($HTTP_COOKIE_VARS["comment_author_url_".$cookiehash]);
     13        $comment_author = (isset($HTTP_COOKIE_VARS['comment_author_'.$cookiehash])) ? trim($HTTP_COOKIE_VARS['comment_author_'.$cookiehash]) : '';
     14        $comment_author_email = (isset($HTTP_COOKIE_VARS['comment_author_email_'.$cookiehash])) ? trim($HTTP_COOKIE_VARS['comment_author_email_'.$cookiehash]) : '';
     15        $comment_author_url = (isset($HTTP_COOKIE_VARS['comment_author_url_'.$cookiehash])) ? trim($HTTP_COOKIE_VARS['comment_author_url_'.$cookiehash]) : '';
    1616
    1717        $comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_approved = '1' ORDER BY comment_date");
Note: See TracChangeset for help on using the changeset viewer.