fixed  Warning: array_keys() expects parameter 1 to be array, string given