Opened 13 years ago
Closed 13 years ago
#21058 closed defect (bug) (fixed)
Undefined variable in mw.getRecentPosts
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.5 | Priority: | low |
| Severity: | trivial | Version: | 1.5 |
| Component: | XML-RPC | Keywords: | has-patch commit |
| Focuses: | Cc: |
Description
The $struct variable is not defined before being used in mw_getRecentPosts method.
The first reference is within a for loop, and then it is referenced again outside of the for loop, where it is technically undefined. While PHP figures out the intended behavior, this is invalid code and generates notices.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
In [21158]: