Skip to content

Commit

Permalink
thumbnails may not be present in the attachments (profile area) - tha…
Browse files Browse the repository at this point in the history
…nks Ruth for reporting

Signed-off-by: emanuele <emanuele45@gmail.com>
  • Loading branch information
emanuele45 committed Aug 26, 2014
1 parent f6ce9ab commit e430ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/subs/Profile.subs.php
Expand Up @@ -2531,7 +2531,7 @@ function profileLoadAttachments($start, $items_per_page, $sort, $boardsAllowed,
'height' => $row['height'],
'downloads' => $row['downloads'],
'is_image' => !empty($row['width']) && !empty($row['height']) && !empty($modSettings['attachmentShowImages']),
'id_thumb' => $row['id_thumb'],
'id_thumb' => !empty($row['id_thumb']) ? $row['id_thumb'] : '',
'subject' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . '#msg' . $row['id_msg'] . '" rel="nofollow">' . censorText($row['subject']) . '</a>',
'posted' => $row['poster_time'],
'msg' => $row['id_msg'],
Expand Down

0 comments on commit e430ccc

Please sign in to comment.