mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-12-25 13:08:58 +00:00
Fixed error in searchController
This commit is contained in:
parent
f3f3713b34
commit
45ae8b51f1
@ -25,7 +25,8 @@ class searchController
|
||||
Rest_fatal_error(401, "Invalid search limit !");
|
||||
|
||||
//Perform research on the database and return results
|
||||
if(!$results = CS::get()->components->searchUser->search($_POST['query'], $searchLimit))
|
||||
$results = CS::get()->components->searchUser->search($_POST['query'], $searchLimit);
|
||||
if($results === false)
|
||||
Rest_fatal_error(500, "An error occured while trying to perform a research in user list !");
|
||||
|
||||
//Return results
|
||||
|
Loading…
Reference in New Issue
Block a user