We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d63561a commit 4fb9192Copy full SHA for 4fb9192
1 file changed
components/com_finder/views/search/tmpl/default_result.php
@@ -19,7 +19,7 @@
19
// Calculate number of characters to display around the result
20
$term_length = JString::strlen($this->query->input);
21
$desc_length = $this->params->get('description_length', 255);
22
- $pad_length = $term_length < $desc_length ? floor(($desc_length - $term_length) / 2) : 0;
+ $pad_length = $term_length < $desc_length ? (int) floor(($desc_length - $term_length) / 2) : 0;
23
24
// Find the position of the search term
25
$pos = $term_length ? JString::strpos(JString::strtolower($this->result->description), JString::strtolower($this->query->input)) : false;
0 commit comments