mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-19 00:25:18 +00:00
Improved security of "sendRequest" method
This commit is contained in:
@ -295,7 +295,7 @@ class User{
|
||||
* @param Integer $userID The ID of the user to check
|
||||
* @return Boolean Depends of the existence of the user
|
||||
*/
|
||||
public function exists($userID){
|
||||
public function exists(int $userID) : bool {
|
||||
//Perform a request on the database
|
||||
$tableName = $this->userTable;
|
||||
$condition = "WHERE ID = ?";
|
||||
|
Reference in New Issue
Block a user