Changeset 1385 for trunk/bb-plugins/bozo.php
- Timestamp:
- 03/30/2008 10:31:06 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/bb-plugins/bozo.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-plugins/bozo.php
r1174 r1385 37 37 if ( 1 < $page ) 38 38 $limit = ($limit * ($page - 1)) . ", $limit"; 39 $bozo_mkey = $bbdb->prefix . 'bozo_topics';40 39 $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"; 41 40 if ( $ids = (array) $bbdb->get_col( $bb_last_countable_query ) ) … … 104 103 endif; 105 104 endforeach; 106 unset($topics, $ t, $i, $counts, $posters, $bozos);105 unset($topics, $i, $counts, $posters, $bozos); 107 106 endif; 108 107 if ( $old ) : … … 234 233 else 235 234 $user->bozo_topics = array($topic_id => 1); 236 bb_update_usermeta( $u id, $bbdb->prefix . 'bozo_topics', $user->bozo_topics );235 bb_update_usermeta( $user_id, $bbdb->prefix . 'bozo_topics', $user->bozo_topics ); 237 236 } 238 237 } … … 255 254 if ( --$user->bozo_topics[$topic_id] < 1 ) 256 255 unset($user->bozo_topics[$topic_id]); 257 bb_update_usermeta( $u id, $bbdb->prefix . 'bozo_topics', $user->bozo_topics );256 bb_update_usermeta( $user_id, $bbdb->prefix . 'bozo_topics', $user->bozo_topics ); 258 257 } 259 258 } 260 259 261 260 function bb_bozo_profile_admin_keys( $a ) { 262 global $user;263 261 $a['is_bozo'] = array( 264 262 0, // Required
Note: See TracChangeset
for help on using the changeset viewer.