Make WordPress Core

Changeset 4497


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

Handle empty authors list. Props MichaelH. fixes #2384

File:
1 edited

Legend:

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

    r4146 r4497  
    189189    $authors = $wpdb->get_results($query);
    190190
    191     foreach ( $authors as $author ) {
     191    foreach ( (array) $authors as $author ) {
    192192        $author = get_userdata( $author->ID );
    193193        $posts = get_usernumposts($author->ID);
Note: See TracChangeset for help on using the changeset viewer.