chore: fix search broken in #3852 (#3855)

This commit is contained in:
Alexis Saettler
2020-04-17 20:23:51 +02:00
committed by GitHub
parent c5ecf34214
commit d23cae97f8
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -718,7 +718,7 @@ class ContactsController extends Controller
$perPage = $request->has('perPage') ? $request->input('perPage') : config('monica.number_of_contacts_pagination');
// search contacts
$contacts = $contacts->search($request->has('search') ? $request->input('search') : '', $accountId, 'is_starred', 'desc', $sort)
$contacts = $contacts->search($request->input('search') ?? '', $accountId, 'is_starred', 'desc', $sort)
->paginate($perPage);
return [