Skip to content

Commit eb5fd66

Browse files
authored
Update Post.php
1 parent 3c965e2 commit eb5fd66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Model/Post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ public function getShortFilteredContent($len = null, $endСharacters = null)
540540
/* Skip long HTML */
541541
$stcc = trim(strip_tags($cc));
542542
//if ($stcc && strlen($stcc) < strlen($cc) / 3) {
543-
if ($len < mb_strlen($content)) {
543+
if ($stcc && $len < mb_strlen($content)) {
544544
$str = '';
545545
$start = false;
546546
foreach (explode(' ', $stcc) as $s) {

0 commit comments

Comments
 (0)