Return recently opened conversations messages

This commit is contained in:
Pierre
2017-06-25 18:09:18 +02:00
parent 2872a84457
commit eed7db90cf
4 changed files with 63 additions and 8 deletions

View File

@ -31,12 +31,12 @@ function check_post_parametres(array $varList){
}
/**
* Convert a list of user comma-separated to an array
* Convert a list of numbers (anything with IDs) comma-separated to an array
*
* @param String $list The input list
* @return Array The list of user / an empty list in case of errors
*/
function users_list_to_array($list) : array{
function numbers_list_to_array($list) : array{
//Split the list into an array
$array = explode(",", $list);
$usersList = array();