ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: emanuele on September 06, 2013, 07:37:32 am

Title: Drafts list bug?
Post by: emanuele on September 06, 2013, 07:37:32 am
Going to http://www.elkarte.net/index.php?action=profile;area=showdrafts
I have 3 pages listed, though the second is empty and the third is the same as the first one except for the numbering that starts (correctly) from 31 instead of 1.

ETA: testing it locally (with 12 pages of drafts), the first three pages look good, from the 4th to the 6th are empty, page 7 and 8 give me these errors:
Code: [Select]
Notice: Undefined index: drafts in /sources/controllers/Draft.controller.php on line 150

Warning: array_reverse() expects parameter 1 to be array, null given in /sources/controllers/Draft.controller.php on line 150
page 10, 11 and 12 are apparently repetitions of 1, 2 and 3.

I'm testing on my "small_things" branch so it may be my fault, though let's track it down before I forget. :P
Title: Re: Drafts list bug?
Post by: emanuele on September 23, 2013, 11:20:29 am
Fixed locally.

ETA: https://github.com/emanuele45/Dialogo/commit/59043e6cefedf0afd7dac41bca852f64ddadc11e