From c2f612bac9d4f9ac6883484b71edb8249963bfdc Mon Sep 17 00:00:00 2001 From: dubcheck Date: Fri, 19 Sep 2014 11:50:02 +0200 Subject: [PATCH] 'no comment' in Recent theme --- templates/themes/recent/theme.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/themes/recent/theme.php b/templates/themes/recent/theme.php index a25ff6a9..b1153477 100644 --- a/templates/themes/recent/theme.php +++ b/templates/themes/recent/theme.php @@ -93,7 +93,10 @@ openBoard($post['board']); $post['link'] = $config['root'] . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], ($post['thread'] ? $post['thread'] : $post['id'])) . '#' . $post['id']; - $post['snippet'] = pm_snippet($post['body'], 30); + if ($post['body'] != "") + $post['snippet'] = pm_snippet($post['body'], 30); + else + $post['snippet'] = "" . _("(no comment)") . ""; $post['board_name'] = $board['name']; $recent_posts[] = $post;