Permalink
Browse files

Fixed str_replace()

  • Loading branch information...
1 parent c47daef commit 6cceb3a7283fa71bfcf7462150e74ddab26c8587 @predominant predominant committed Mar 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Model/Search.php
View
2 Model/Search.php
@@ -21,7 +21,7 @@ public function find($lang, $query = array()) {
return array(
'title' => isset($el['fields']['title']) ? $el['fields']['title'] : '',
'url' => $el['fields']['url'],
- 'contents' => str_replace(array('<em>', '</em>'), $el['highlight']['contents']),
+ 'contents' => str_replace(array('<em>', '</em>'), '', $el['highlight']['contents']),
);
}, $contents['hits']['hits']);
return array(

0 comments on commit 6cceb3a

Please sign in to comment.