From: Jan Schneider Date: Tue, 18 Jan 2011 18:26:13 +0000 (+0100) Subject: Use correct key when creating first share. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d76b5df5f15d89bf188e3e8d1d8eb0ef6ebf2800;p=horde.git Use correct key when creating first share. --- 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 */