Fixed warning array_shift() expects parameter 1 to be array, string given.
Merge pull request #38 from nigelgbanks/6.x-fix-warning

Fixed warning array_shift() expects parameter 1 to be array, string give...