Only show the attachment elements if there are one.
This commit is contained in:
parent
1c8e74edce
commit
a5baba84af
1 changed files with 3 additions and 3 deletions
|
@ -1374,7 +1374,6 @@ function prepare_body(&$item, $attach = false, $preview = false) {
|
||||||
$vhead = false;
|
$vhead = false;
|
||||||
$arr = explode('[/attach],', $item['attach']);
|
$arr = explode('[/attach],', $item['attach']);
|
||||||
if (count($arr)) {
|
if (count($arr)) {
|
||||||
$as .= '<div class="body-attach">';
|
|
||||||
foreach ($arr as $r) {
|
foreach ($arr as $r) {
|
||||||
$matches = false;
|
$matches = false;
|
||||||
$icon = '';
|
$icon = '';
|
||||||
|
@ -1434,9 +1433,10 @@ function prepare_body(&$item, $attach = false, $preview = false) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$as .= '<div class="clear"></div></div>';
|
|
||||||
}
|
}
|
||||||
$s = $s . $as;
|
if ($as != '') {
|
||||||
|
$s .= '<div class="body-attach">'.$as.'<div class="clear"></div></div>';
|
||||||
|
}
|
||||||
|
|
||||||
// map
|
// map
|
||||||
if (strpos($s, '<div class="map">') !== false && x($item, 'coord')) {
|
if (strpos($s, '<div class="map">') !== false && x($item, 'coord')) {
|
||||||
|
|
Loading…
Reference in a new issue