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

...n.