Pagination fix for strpos call with array instead of string

Fixes Warning:  strpos() expects parameter 1 to be string, array given