Merge pull request #4546 from annando/twidere-crash
Bugfix: Avoid that Twidere is crashing
This commit is contained in:
commit
a141730e8d
|
@ -5913,10 +5913,12 @@ function api_saved_searches_list($type)
|
||||||
$result = [];
|
$result = [];
|
||||||
while ($term = $terms->fetch()) {
|
while ($term = $terms->fetch()) {
|
||||||
$result[] = [
|
$result[] = [
|
||||||
'name' => $term['term'],
|
'created_at' => api_date(time()),
|
||||||
'query' => $term['term'],
|
'id' => intval($term['id']),
|
||||||
'id_str' => $term['id'],
|
'id_str' => $term['id'],
|
||||||
'id' => intval($term['id'])
|
'name' => $term['term'],
|
||||||
|
'position' => null,
|
||||||
|
'query' => $term['term']
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue