Skip to:
Content

bbPress.org

Changeset 26


Ignore:
Timestamp:
12/29/2004 01:23:42 AM (17 years ago)
Author:
matt
Message:

Don't barf on new users.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/profile.php

    r18 r26  
    2828endforeach;
    2929$topic_ids = join(',', $topics);
    30 $topics = $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE topic_id IN ($topic_ids)");
    31 foreach ($topics as $topic) :
    32     $topic_cache[$topic->topic_id] = $topic;
    33 endforeach;
     30
     31if ( $posts || $threads ) :
     32    $topics = $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE topic_id IN ($topic_ids)");
     33    foreach ($topics as $topic) :
     34        $topic_cache[$topic->topic_id] = $topic;
     35    endforeach;
     36endif;
    3437
    3538bb_add_filter('post_time', 'strtotime');
Note: See TracChangeset for help on using the changeset viewer.