From 18b0d24c2003d26b58f6aa596418e1b03291b8f4 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Thu, 15 Mar 2012 18:30:36 +0100 Subject: [PATCH] Rollback --- lib/classes/caption/record.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/classes/caption/record.class.php b/lib/classes/caption/record.class.php index 52ce444bdf..49a5b65670 100644 --- a/lib/classes/caption/record.class.php +++ b/lib/classes/caption/record.class.php @@ -178,7 +178,7 @@ class caption_record implements caption_interface, cache_cacheableInterface protected function highlight_fields($highlight, Array $grep_fields = null, searchEngine_adapter $searchEngine = null) { $fields = array(); - + foreach ($this->retrieve_fields() as $meta_struct_id => $field) { if (is_array($grep_fields) && !in_array($field->get_name(), $grep_fields)) @@ -209,8 +209,8 @@ class caption_record implements caption_interface, cache_cacheableInterface if(!isset($fields[$key])) continue; - if(strpos($fields[$key]['value'], '