Make WordPress Core

Changeset 4496


Ignore:
Timestamp:
11/19/2006 08:05:46 AM (18 years ago)
Author:
ryan
Message:

Handle empty authors list. Props MichaelH. fixes #2384

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/template-functions-author.php

    r4234 r4496  
    184184    $authors = $wpdb->get_results($query);
    185185
    186     foreach ( $authors as $author ) {
     186    foreach ( (array) $authors as $author ) {
    187187        $author = get_userdata( $author->ID );
    188188        $posts = get_usernumposts($author->ID);
Note: See TracChangeset for help on using the changeset viewer.