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
 | 
					 * Convert a list of numbers (anything with IDs) comma-separated to an array
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * @param String $list The input list
 | 
					 * @param string $list The input list
 | 
				
			||||||
 * @return Array The list of user / an empty list in case of errors
 | 
					 * @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
 | 
						//Split the list into an array
 | 
				
			||||||
	$array = explode(",", $list);
 | 
						$array = explode(",", $list);
 | 
				
			||||||
	$usersList = array();
 | 
						$usersList = array();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user