diff --git a/admin/admin_attach_cp.php b/admin/admin_attach_cp.php index 5614dbad..7f4acde7 100644 --- a/admin/admin_attach_cp.php +++ b/admin/admin_attach_cp.php @@ -494,12 +494,7 @@ if ($view == 'attachments') $row = DB()->sql_fetchrow($result); DB()->sql_freeresult($result); - $post_title = $row['topic_title']; - - if (strlen($post_title) > 32) - { - $post_title = str_short($post_title, 30); - } + $post_title = str_short($row['topic_title'], 30); $view_topic = BB_ROOT . POST_URL . $ids[$j]['post_id'] . '#' . $ids[$j]['post_id'];