Secondo voi cosa c'è che non va nel codice che mi va a causare l'errore seguente?
Warning: preg_match() expects parameter 2 to be string, array given in /home/XXXXXX/public_html/news/inc/functions.inc.php on line 175



codice:
if(isset($lang)){

if(!preg_match('/^[a-z]{1,}$/', $lang) || !file_exists($cutepath.'/data/'.$lang.'.clf')){

		$lang = 'english';

	}

	require_once($cutepath.'/data/'.$lang.'.clf');

}

else{

	ob_start();

	require_once($cutepath.'/data/english.clf');

	ob_end_clean();

}