Show user name if both email address and full name are empty.
authorJan Schneider <jan@horde.org>
Mon, 15 Feb 2010 15:37:19 +0000 (16:37 +0100)
committerJan Schneider <jan@horde.org>
Mon, 15 Feb 2010 17:03:59 +0000 (18:03 +0100)
kronolith/lib/FreeBusy.php

index a73b4b8..3c80c49 100644 (file)
@@ -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);