mirror of
https://github.com/friendica/friendica
synced 2025-04-24 01:50:17 +00:00
Add MessageDirect\Search tests
This commit is contained in:
parent
c5969de66d
commit
5d69f7411d
3 changed files with 101 additions and 2 deletions
|
@ -73,8 +73,6 @@ class Search extends BaseApi
|
|||
|
||||
// message if nothing was found
|
||||
if (!DBA::isResult($mails)) {
|
||||
$success = ['success' => false, 'search_results' => 'problem with query'];
|
||||
} elseif (count($mails) == 0) {
|
||||
$success = ['success' => false, 'search_results' => 'nothing found'];
|
||||
} else {
|
||||
$ret = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue