diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-10-15 16:07:13 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-10-15 16:07:13 +0200 |
commit | d40a087ec2849c2c7d5893b420631dd6ff3df24e (patch) | |
tree | 96996fea2e6e0c82ced06c4ff429fb727416df8d /include/text.php | |
parent | 138c14d43f7d0546201c2ad99225b94a80efd663 (diff) | |
download | volse-hubzilla-d40a087ec2849c2c7d5893b420631dd6ff3df24e.tar.gz volse-hubzilla-d40a087ec2849c2c7d5893b420631dd6ff3df24e.tar.bz2 volse-hubzilla-d40a087ec2849c2c7d5893b420631dd6ff3df24e.zip |
really fix label name
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php index 727ccad7f..9246370ba 100644 --- a/include/text.php +++ b/include/text.php @@ -1218,7 +1218,12 @@ function theme_attachments(&$item) { foreach($arr as $r) { $icon = getIconFromType($r['type']); - $label = (($r['title'] != ' ' || $r['title'] != '') ? urldecode(htmlspecialchars($r['title'], ENT_COMPAT, 'UTF-8')) : t('Unknown Attachment')); + $label = (($r['title']) ? urldecode(htmlspecialchars($r['title'], ENT_COMPAT, 'UTF-8')) : t('Unknown Attachment')); + + //some feeds provide an attachment where title an empty space + if($label == ' ') + $label = t('Unknown Attachment'); + $title = t('Attachment') . ' - ' . (($r['length']) ? userReadableSize($r['length']) : t('Size Unknown')); require_once('include/identity.php'); |