From 07124ee38dfa1b9c51d9efbddd2680497ec633f9 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Fri, 22 Jun 2012 01:43:59 +0200 Subject: Cast translation to string. --- apps/contacts/lib/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/contacts/lib/search.php b/apps/contacts/lib/search.php index 5a5632a1520..5d9ca97e761 100644 --- a/apps/contacts/lib/search.php +++ b/apps/contacts/lib/search.php @@ -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 } } } -- cgit v1.2.3