#5498 closed defect (bug) (fixed)
Manage => Pages may produce orphaned page
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.5 | Priority: | normal |
| Severity: | normal | Version: | 2.5 |
| Component: | General | Keywords: | has-patch |
| Focuses: | Cc: |
Description
because array_splice may not preserve the original numeric index, it causes our pages display to produce orphaned pages.
Attachments (3)
Change History (11)
Note: See
TracTickets for help on using
tickets.
In most cases, array_splice preserves index, yet, by spec, it may not.
When it doesn't, that is causing problems.
To fix this, we set $i to -1, thus when ++ed, it starts from 0.