From fd0244dabfe6fe5d51c64aae293e8d199bbde5ae Mon Sep 17 00:00:00 2001
From: James Buncle <jbuncle@names.co.uk>
Date: Thu, 07 Jan 2016 11:21:22 -0500
Subject: [PATCH] Ensure roundcube doesn't render contact names as blank (when the name is whitespace)

---
 program/lib/Roundcube/rcube_addressbook.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/lib/Roundcube/rcube_addressbook.php b/program/lib/Roundcube/rcube_addressbook.php
index 325b48a..b4ce03b 100644
--- a/program/lib/Roundcube/rcube_addressbook.php
+++ b/program/lib/Roundcube/rcube_addressbook.php
@@ -550,7 +550,7 @@
         // fallbacks...
         if ($fn === '') {
             // ... display name
-            if (!empty($contact['name'])) {
+            if (!empty(trim($contact['name']))) {
                 $fn = $contact['name'];
             }
             // ... organization

--
Gitblit v1.9.1