Opened 14 years ago
Closed 14 years ago
#3921 closed defect (bug) (fixed)
Notice: Undefined property in bp-activity-template.php on line 1559 if xprofile is disabled
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 1.6 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Activity | Keywords: | |
| Cc: |
Description
A notice is thrown if xprofile is disabled and there are comments to an activity item.
Notice: Undefined property: stdClass::$user_fullname in public_html/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php on line 1559
This is caused because $user_fullname is populated by the code at bp-activity-classes.php#L174 but only if xprofile is enabled.
Attached is a patch to fix it, an alternative could be to remove the filter since it was depreciated.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
(In [5639]) Fix PHP Notice when viewing activity comments with xprofile disabled. Fixes #3921, props lancehudson for initial patch.