Changeset 4497

Show
Ignore:
Timestamp:
11/19/06 08:06:03 (2 years ago)
Author:
ryan
Message:

Handle empty authors list. Props MichaelH. fixes #2384

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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);