Revert $term DB result check

pull/7417/head
Philipp Holzer 2019-07-27 15:34:08 +02:00
rodzic 37d03bbeae
commit b7f1de1e64
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: D8365C3D36B77D90
1 zmienionych plików z 9 dodań i 11 usunięć

Wyświetl plik

@ -6268,7 +6268,6 @@ function api_saved_searches_list($type)
$terms = DBA::select('search', ['id', 'term'], ['uid' => local_user()]); $terms = DBA::select('search', ['id', 'term'], ['uid' => local_user()]);
$result = []; $result = [];
if (DBA::isResult($terms)) {
while ($term = $terms->fetch()) { while ($term = $terms->fetch()) {
$result[] = [ $result[] = [
'created_at' => api_date(time()), 'created_at' => api_date(time()),
@ -6279,7 +6278,6 @@ function api_saved_searches_list($type)
'query' => $term['term'] 'query' => $term['term']
]; ];
} }
}
DBA::close($terms); DBA::close($terms);