diff --git a/includes/processor_highlight.inc b/includes/processor_highlight.inc index 2ac502a1..f3f2fce6 100644 --- a/includes/processor_highlight.inc +++ b/includes/processor_highlight.inc @@ -360,7 +360,7 @@ protected function createExcerpt($text, array $keys) { // and ends with a space. $matches = array(); - if (!$this->options['highlight_partial']) { + if (empty($this->options['highlight_partial'])) { $found_position = FALSE; $regex = '/' . static::$boundary . preg_quote($key, '/') . static::$boundary . '/iu'; if (preg_match($regex, ' ' . $text . ' ', $matches, PREG_OFFSET_CAPTURE, $look_start[$key])) {