mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-19 00:25:18 +00:00
Follow state of a conversation can be updated
This commit is contained in:
@ -72,18 +72,14 @@ class userController
|
||||
|
||||
//Determine userID
|
||||
if(isset($_POST['userID'])){
|
||||
$usersID = array($_POST['userID']*1);
|
||||
$usersID = array(toInt($_POST['userID']));
|
||||
}
|
||||
elseif(isset($_POST['usersID'])){
|
||||
//Generate users ID list
|
||||
$usersID = array();
|
||||
foreach(explode(",", $_POST['usersID']) as $userID){
|
||||
if($userID*1 > 0)
|
||||
$usersID[$userID*1] = $userID*1;
|
||||
}
|
||||
|
||||
$usersID = users_list_to_array($_POST['usersID']);
|
||||
|
||||
//Check for errors
|
||||
if(count($userID) == 0)
|
||||
if(count($usersID) == 0)
|
||||
Rest_fatal_error(400, "No user ID were specified!");
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user