Skip to:
Content

BuddyPress.org

Ticket #5590: 5590.diff

File 5590.diff, 563 bytes (added by imath, 12 years ago)
  • bp-core/bp-core-classes.php

     
    13591359                }
    13601360
    13611361                // If this was a single user query, update the cache
    1362                 if ( ! is_array( $user_id ) && isset( $retval[ $user_id ] ) ) {
    1363                         wp_cache_set( $user_id, $retval[ $user_id ], 'bp_last_activity' );
     1362                if ( ! is_array( $user_id ) && ! empty( $retval ) ) {
     1363                        wp_cache_set( $user_id, $retval, 'bp_last_activity' );
    13641364                }
    13651365
    13661366                return $retval;