Opened 8 years ago
Closed 8 years ago
#7902 closed defect (bug) (fixed)
Potential PHP fatal errors in bp_comment_author_avatar and bp_post_author_avatar
| Reported by: | xknown | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.0 |
| Component: | Core | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
A static analysis tool to detect PHP 7.2 incompatibilities detected that bp_comment_author_avatar and bp_post_author_avatar call the get_avatar function without any arguments (it requires at least 1 argument #). This produces a fatal error in PHP versions >= 7.1 (#)
The code path to reach the get_avatar call is potentially non reachable, but I think it would be good to fix it or maybe remove it if you think this is no longer necessary.
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks for the ticket! This code is indeed unreachable, so we can remove it.