From: Jan Schneider Date: Mon, 15 Feb 2010 15:37:19 +0000 (+0100) Subject: Show user name if both email address and full name are empty. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=be54f142a7e90c93ffaf2c834ebe4ea07bf848d6;p=horde.git Show user name if both email address and full name are empty. --- 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);