Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/30/2008 10:31:06 AM (18 years ago)
Author:
sambauers
Message:

Various optimisations and typo fixes - Fixes #842 - props momo360modena

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-plugins/bozo.php

    r1174 r1385  
    3737    if ( 1 < $page )
    3838        $limit = ($limit * ($page - 1)) . ", $limit";
    39     $bozo_mkey = $bbdb->prefix . 'bozo_topics';
    4039    $bb_last_countable_query = "SELECT user_id FROM $bbdb->usermeta WHERE meta_key='is_bozo' AND meta_value='1' ORDER BY umeta_id DESC LIMIT $limit";
    4140    if ( $ids = (array) $bbdb->get_col( $bb_last_countable_query ) )
     
    104103                endif;
    105104            endforeach;
    106             unset($topics, $t, $i, $counts, $posters, $bozos);
     105            unset($topics, $i, $counts, $posters, $bozos);
    107106        endif;
    108107        if ( $old ) :
     
    234233        else
    235234            $user->bozo_topics = array($topic_id => 1);
    236         bb_update_usermeta( $uid, $bbdb->prefix . 'bozo_topics', $user->bozo_topics );
     235        bb_update_usermeta( $user_id, $bbdb->prefix . 'bozo_topics', $user->bozo_topics );
    237236    }
    238237}
     
    255254        if ( --$user->bozo_topics[$topic_id] < 1 )
    256255            unset($user->bozo_topics[$topic_id]);
    257         bb_update_usermeta( $uid, $bbdb->prefix . 'bozo_topics', $user->bozo_topics );
     256        bb_update_usermeta( $user_id, $bbdb->prefix . 'bozo_topics', $user->bozo_topics );
    258257    }
    259258}
    260259
    261260function bb_bozo_profile_admin_keys( $a ) {
    262     global $user;
    263261    $a['is_bozo'] = array(
    264262        0,                          // Required
Note: See TracChangeset for help on using the changeset viewer.