From be54f142a7e90c93ffaf2c834ebe4ea07bf848d6 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 15 Feb 2010 16:37:19 +0100 Subject: [PATCH] Show user name if both email address and full name are empty. --- kronolith/lib/FreeBusy.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kronolith/lib/FreeBusy.php b/kronolith/lib/FreeBusy.php index a73b4b89e..3c80c4960 100644 --- a/kronolith/lib/FreeBusy.php +++ b/kronolith/lib/FreeBusy.php @@ -63,6 +63,9 @@ class Kronolith_FreeBusy $identity = Horde_Prefs_Identity::singleton('none', $user ? $user : $owner); $email = $identity->getValue('from_addr'); $cn = $identity->getValue('fullname'); + if (empty($mail) && empty($cn)) { + $cn = $user ? $user : $owner; + } /* Fetch events. */ $busy = Kronolith::listEvents(new Horde_Date($startstamp), $enddate, $calendar); -- 2.11.0