From 138c14d43f7d0546201c2ad99225b94a80efd663 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 15 Oct 2015 15:48:13 +0200 Subject: wrong logic --- include/text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/text.php b/include/text.php index fca674099..727ccad7f 100644 --- a/include/text.php +++ b/include/text.php @@ -1218,7 +1218,7 @@ function theme_attachments(&$item) { foreach($arr as $r) { $icon = getIconFromType($r['type']); - $label = (($r['title'] == '') ? urldecode(htmlspecialchars($r['title'], ENT_COMPAT, 'UTF-8')) : t('Unknown Attachment')); + $label = (($r['title'] != ' ' || $r['title'] != '') ? urldecode(htmlspecialchars($r['title'], ENT_COMPAT, 'UTF-8')) : t('Unknown Attachment')); $title = t('Attachment') . ' - ' . (($r['length']) ? userReadableSize($r['length']) : t('Size Unknown')); require_once('include/identity.php'); -- cgit v1.2.3