aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-08-20 01:12:35 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-08-20 01:12:35 -0700
commit5786fd2221f1812620084420c0dca578d83a1a2f (patch)
tree00ee1c94ee81507b9ff7f51f45429ec6ff8bf24d /include/text.php
parent419b4ecfde2c636da41a07033b279d3aaf21b067 (diff)
downloadvolse-hubzilla-5786fd2221f1812620084420c0dca578d83a1a2f.tar.gz
volse-hubzilla-5786fd2221f1812620084420c0dca578d83a1a2f.tar.bz2
volse-hubzilla-5786fd2221f1812620084420c0dca578d83a1a2f.zip
extra encoding on mail titles
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index cc084f6f1..f27a9ce68 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1305,7 +1305,7 @@ function theme_attachments(&$item) {
$title = htmlspecialchars($r['title'], ENT_COMPAT,'UTF-8');
if(! $title)
$title = t('unknown.???');
- $title .= ' ' . $r['length'] . ' ' . t('bytes');
+ $title .= ' ' . (($r['length']) ? $r['length'] . ' ' . t('bytes') : '');
require_once('include/identity.php');
if(is_foreigner($item['author_xchan']))