First post request

This commit is contained in:
Pierre
2017-12-24 17:45:05 +01:00
parent bdf47b9c26
commit 85bf596e54
4 changed files with 135 additions and 6 deletions

View File

@ -162,12 +162,8 @@ class friendsController{
user_login_required(); //Login required
//Check if the a friendID has been specified
if(!isset($_POST['friendID']))
Rest_fatal_error(400, "Please specify a friend ID !");
//Get it
$friendID = toInt($_POST['friendID']);
$friendID = getPostUserID('friendID');
//Prepare the response
$response = array(