From d76b5df5f15d89bf188e3e8d1d8eb0ef6ebf2800 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 18 Jan 2011 19:26:13 +0100 Subject: [PATCH] Use correct key when creating first share. --- kronolith/lib/Kronolith.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index 383a8bbe7..670b5e695 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -1122,7 +1122,7 @@ class Kronolith $share = $GLOBALS['kronolith_shares']->newShare($GLOBALS['registry']->getAuth(), strval(new Horde_Support_Randomid())); $share->set('name', sprintf(_("Calendar of %s"), $identity->getName())); $GLOBALS['kronolith_shares']->addShare($share); - $GLOBALS['all_calendars'][$GLOBALS['registry']->getAuth()] = new Kronolith_Calendar_Internal(array('share' => $share)); + $GLOBALS['all_calendars'][$share->getName()] = new Kronolith_Calendar_Internal(array('share' => $share)); $GLOBALS['display_calendars'][] = $share->getName(); /* Calendar auto-sharing with the user's groups */ -- 2.11.0