#5597 closed defect (bug) (duplicate)
BP_Core_User::get_last_activity() returns incorrect result from cache
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Core | Keywords: | |
Cc: |
Description
BP_Core_User::get_last_activity()
returns either:
- A multidimensional array keyed by user ID (for many users, or non-cached checks)
- An array for one user with no user ID key (for cached checks)
It causes problems with BP_Core_User::update_last_activity()
because $activity
is not always keyed the same, and has hardcoded checks for:
'id' => $activity[ $user_id ]['activity_id']
$activity[ $user_id ]['date_recorded'] = $time;
Resulting in the following debug notice and failed query:
Notice: Undefined offset: 1 in /wp-content/plugins/buddypress/bp-core/bp-core-classes.php on line 1399
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
In 8326: