]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: Avoid that Twidere is crashing
authorMichael <heluecht@pirati.ca>
Sun, 4 Mar 2018 19:25:02 +0000 (19:25 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 4 Mar 2018 19:25:02 +0000 (19:25 +0000)
include/api.php

index f742d2cb2abd3b1a8ee31c2ce59e4353d852ea23..a7d8ab3ca3a3af8fec7c6b19190f3b41c21473f4 100644 (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']
                ];
        }