Fixed mismatch of transferred types for search page

This commit is contained in:
Visman 2020-06-23 19:49:04 +07:00
parent 88458ad942
commit 3fb3a5e1e3

View file

@ -64,7 +64,7 @@ class Execute extends Method
if (! empty($row['search_time']) && \time() - $row['search_time'] < 60 * 5) { //????
$result = \explode("\n", $row['search_data']);
$this->model->queryIds = '' == $result[0] ? [] : \explode(',', $result[0]);
$this->model->queryIds = '' == $result[0] ? [] : \array_map('\\intval', \explode(',', $result[0]));
$this->model->queryNoCache = false;
return true;
} elseif ($flood) {