Revert $term DB result check
This commit is contained in:
@@ -6268,7 +6268,6 @@ function api_saved_searches_list($type)
|
||||
$terms = DBA::select('search', ['id', 'term'], ['uid' => local_user()]);
|
||||
|
||||
$result = [];
|
||||
if (DBA::isResult($terms)) {
|
||||
while ($term = $terms->fetch()) {
|
||||
$result[] = [
|
||||
'created_at' => api_date(time()),
|
||||
@@ -6279,7 +6278,6 @@ function api_saved_searches_list($type)
|
||||
'query' => $term['term']
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
DBA::close($terms);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user