Skip to content

Commit

Permalink
1.4.16
Browse files Browse the repository at this point in the history
  • Loading branch information
Pathologic committed Feb 12, 2022
1 parent c4b6130 commit c4d5af1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/lib/class.summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Agel_Nash <[email protected]>
* @see http://blog.agel-nash.ru/addon/summary.html
* @date 31.07.2013
* @version 1.0.3
* @version 1.0.4
*/
include_once(MODX_BASE_PATH . 'assets/lib/APIHelpers.class.php');

Expand Down Expand Up @@ -283,7 +283,7 @@ protected function textTrunc($string, $limit, $break = ". ")
}

$string = mb_substr($string, 0, $limit, 'UTF-8');
if (false !== ($breakpoint = mb_strrpos($string, $break, 'UTF-8'))) {
if (false !== ($breakpoint = mb_strrpos($string, $break, 0, 'UTF-8'))) {
$string = mb_substr($string, 0, $breakpoint + 1, 'UTF-8');
} else {
if ($break != ' ') {
Expand Down

0 comments on commit c4d5af1

Please sign in to comment.