english/administrator/components/com_aicontactsafe/models/attachments.php
// function to filter files by a string
function to filter files by a string
function to filter files by a string
function filterFiles($files, $string) {
		$string = strtolower($string);
		foreach($files as $key=>$file) {
			if (strpos(strtolower($file->name), $string) === false) {
				unset($files[$key]);
			}
		}
		return $files;
	}
function filterFiles ( $ files , $ string ) { $ string = strtolower ( $ string ) ; foreach ( $ files as $ key => $ file ) { if ( strpos ( strtolower ( $ file -> name ) , $ string ) === false ) { unset ( $ files [ $ key ] ) ; } } return $ files ; }
function to filter files by a string
function to filter files by a string