Cast translation to string.
This commit is contained in:
parent
e1fa9c282b
commit
07124ee38d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue