From 506f851b23658e4b696633e4826b7c3f67da2ef2 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 4 Mar 2018 19:25:02 +0000 Subject: [PATCH] Bugfix: Avoid that Twidere is crashing --- include/api.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/api.php b/include/api.php index f742d2cb2..a7d8ab3ca 100644 --- a/include/api.php +++ b/include/api.php @@ -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'] ]; }