Merge pull request #4546 from annando/twidere-crash

Bugfix: Avoid that Twidere is crashing
This commit is contained in:
Hypolite Petovan 2018-03-04 14:58:08 -05:00 committed by GitHub
commit a141730e8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -5913,10 +5913,12 @@ function api_saved_searches_list($type)
$result = [];
while ($term = $terms->fetch()) {
$result[] = [
'name' => $term['term'],
'query' => $term['term'],
'created_at' => api_date(time()),
'id' => intval($term['id']),
'id_str' => $term['id'],
'id' => intval($term['id'])
'name' => $term['term'],
'position' => null,
'query' => $term['term']
];
}