use Kronolith::getInternalCalendar() here as well
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 9 Sep 2009 19:30:28 +0000 (15:30 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 29 Sep 2009 20:53:52 +0000 (16:53 -0400)
kronolith/add.php

index 1baf406..5b3f5e9 100644 (file)
@@ -16,7 +16,7 @@ if (!Horde_Util::getFormData('cancel')) {
         $calendar_id = $targetcalendar;
         $user = Horde_Auth::getAuth();
     }
-    $share = &$kronolith_shares->getShare($calendar_id);
+    $share = Kronolith::getInternalCalendar($calendar_id);
     if (is_a($share, 'PEAR_Error')) {
         $notification->push(sprintf(_("There was an error accessing the calendar: %s"), $share->getMessage()), 'horde.error');
     } elseif ($user != Horde_Auth::getAuth() &&