diff options
Diffstat (limited to 'engine/lib/output.php')
-rw-r--r-- | engine/lib/output.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/lib/output.php b/engine/lib/output.php index b2eb532ca..6e861e4ac 100644 --- a/engine/lib/output.php +++ b/engine/lib/output.php @@ -100,6 +100,10 @@ function autop($pee, $br = 1) { function elgg_make_excerpt($text, $num_chars = 250) { $text = trim(strip_tags($text)); $string_length = elgg_strlen($text); + + if ($string_length <= $num_chars) { + return $text; + } // handle cases $excerpt = elgg_substr($text, 0, $num_chars); |