WordPress.org

Make WordPress Core

Changeset 4328


Ignore:
Timestamp:
10/04/06 10:58:32 (8 years ago)
Author:
markjaquith
Message:

cast to array in retrospaminator. Props mdawaffe. fixes #2745

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/classes.php

    r4292 r4328  
    810810        $this->spam_words = $list; 
    811811 
    812         $this->comment_list = $wpdb->get_results("SELECT comment_ID AS ID, comment_content AS text, comment_approved AS approved, comment_author_url AS url, comment_author_ip AS ip, comment_author_email AS email FROM $wpdb->comments ORDER BY comment_ID ASC"); 
     812        $this->comment_list = (array) $wpdb->get_results("SELECT comment_ID AS ID, comment_content AS text, comment_approved AS approved, comment_author_url AS url, comment_author_ip AS ip, comment_author_email AS email FROM $wpdb->comments ORDER BY comment_ID ASC"); 
    813813    }   // End of class constructor 
    814814 
Note: See TracChangeset for help on using the changeset viewer.