Opened 17 years ago
Closed 17 years ago
#4671 closed defect (bug) (fixed)
Empty ul in RSS widget when only a title present
Reported by: | brettz95 | Owned by: | westi |
---|---|---|---|
Milestone: | 2.3 | Priority: | normal |
Severity: | normal | Version: | 2.2.1 |
Component: | General | Keywords: | has-patch dev-reviewed |
Focuses: | Cc: |
Description
An empty <ul> element is created (and this is not XHTML kosher) when the RSS widget is used and there is only a title present (no items). The patch does a test to see if the array containing $rss->items is empty before adding <ul> tags. Didn't see a version number for this, but I assume its 2.3 as I just downloaded it...
Attachments (2)
Change History (6)
#1
@
17 years ago
- Component changed from Administration to General
- Keywords has-patch added
- Milestone set to 2.3 (trunk)
- Version changed from 2.3 to 2.2.1
2.3 has not yet been released, so I assume you're running 2.2.1, the latest stable release.
Patch looks good. 2 small suggestions though:
- You're mixing print and echo. I'd prefer only echo as thats the standard throughout the codebase.
- You could combine the exisiting is_array and new is_empty into a single if statement. This would result in a smaller and cleaner patch.
Note: See
TracTickets for help on using
tickets.
Fix empty <ul> issue in widget.php