Cast translation to string.

This commit is contained in:
Thomas Tanghus 2012-06-22 01:43:59 +02:00
parent e1fa9c282b
commit 07124ee38d

View file

@ -12,7 +12,7 @@ class OC_Search_Provider_Contacts extends OC_Search_Provider{
foreach($vcards as $vcard){
if(substr_count(strtolower($vcard['fullname']), strtolower($query)) > 0){
$link = OCP\Util::linkTo('contacts', 'index.php').'&id='.urlencode($vcard['id']);
$results[]=new OC_Search_Result($vcard['fullname'],'', $link,$l->t('Contact'));//$name,$text,$link,$type
$results[]=new OC_Search_Result($vcard['fullname'],'', $link,(string)$l->t('Contact'));//$name,$text,$link,$type
}
}
}