From: Michael Date: Sun, 4 Mar 2018 19:25:02 +0000 (+0000) Subject: Bugfix: Avoid that Twidere is crashing X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=506f851b23658e4b696633e4826b7c3f67da2ef2;p=friendica.git Bugfix: Avoid that Twidere is crashing --- diff --git a/include/api.php b/include/api.php index f742d2cb2a..a7d8ab3ca3 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'] ]; }