Follow state of a conversation can be updated

This commit is contained in:
Pierre
2017-06-18 10:07:52 +02:00
parent b1e340e0c1
commit 952779f527
7 changed files with 84 additions and 15 deletions

View File

@ -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