[ticket/471] Do not shorten text if limit is at 0

Also, text will no longer be shortened if the modules is using the compact
style.

B3P-471
This commit is contained in:
Marc Alexander
2015-02-12 23:03:33 +01:00
parent b98c6fed23
commit ce42fb4fb8
3 changed files with 3 additions and 3 deletions

View File

@@ -623,7 +623,7 @@ class fetch_posts
*/
protected function format_message($row, $text_length, &$posts_striped)
{
if (($text_length !== 0) && (strlen($row['post_text']) > $text_length))
if ($text_length > 0 && (strlen($row['post_text']) > $text_length))
{
$message = str_replace(array("\n", "\r"), array('<br />', "\n"), $row['post_text']);
$message = get_sub_taged_string($message, $row['bbcode_uid'], $text_length);