GetAllShelves suffers from the same problem as caused bug 5529 the scalar return of the db fetchall_arrayref is stored in an array. Not surprising the calling code is outputting debug code!! Refactor the routine to do what we think it is correct
Created attachment 3755 [details] [review] Proposed Patch
Everything looks ok.
Pushed, please test
There have been no further reports of problems so I am marking this bug resolved.