Skip to content

Commit

Permalink
Fix not cutting at middle of word
Browse files Browse the repository at this point in the history
  • Loading branch information
ggppdk committed Apr 19, 2022
1 parent 2bd71c4 commit 8bf5477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/classes/helpers/html.php
Expand Up @@ -2263,7 +2263,7 @@ static function striptagsandcut( $text, $chars=null, &$uncut_length=0, $options
if ($chars && $uncut_length > $chars)
{
// If not cutting at middle of word, then find closest whitespace, that is previous to the word
if ($options['cut_at_word'])
if (!$options['cut_at_word'])
{
$chars = StringHelper::strrpos(StringHelper::substr($cleantext, 0, $chars), ' ');
}
Expand Down

0 comments on commit 8bf5477

Please sign in to comment.