mirror of
				https://github.com/pierre42100/ComunicAPI
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Improved numbers_list_to_array casting.
This commit is contained in:
		@@ -33,10 +33,10 @@ function check_post_parametres(array $varList) : bool {
 | 
			
		||||
/**
 | 
			
		||||
 * 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
 | 
			
		||||
 * @param string $list The input list
 | 
			
		||||
 * @return array The list of user / an empty list in case of errors
 | 
			
		||||
 */
 | 
			
		||||
function numbers_list_to_array($list) : array {
 | 
			
		||||
function numbers_list_to_array(string $list) : array {
 | 
			
		||||
	//Split the list into an array
 | 
			
		||||
	$array = explode(",", $list);
 | 
			
		||||
	$usersList = array();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user