Improved security of "sendRequest" method

This commit is contained in:
Pierre
2017-12-24 16:48:08 +01:00
parent e8b448ea86
commit bdf47b9c26
3 changed files with 23 additions and 1 deletions

View File

@ -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 = ?";