Fix session access.
authorJan Schneider <jan@horde.org>
Thu, 4 Nov 2010 21:26:57 +0000 (22:26 +0100)
committerJan Schneider <jan@horde.org>
Thu, 4 Nov 2010 21:26:57 +0000 (22:26 +0100)
kronolith/index.php

index 7d5cbc4..06ae900 100644 (file)
@@ -28,10 +28,9 @@ $today = new Horde_Date($_SERVER['REQUEST_TIME']);
 
 /* Suppress menus in prefs screen and indicate that notifications should use
  * the ajax mode. */
-$session['horde:notification_override'] = array(
-    KRONOLITH_BASE . '/lib/Notification/Listener/AjaxStatus.php',
-    'Kronolith_Notification_Listener_AjaxStatus'
-);
+$session->set('horde', 'notification_override',
+              array(KRONOLITH_BASE . '/lib/Notification/Listener/AjaxStatus.php',
+                    'Kronolith_Notification_Listener_AjaxStatus'));
 
 $eventAlarmMethods = $eventAlarmParams = $taskAlarmMethods = $taskAlarmParams = '';
 foreach ($injector->getInstance('Horde_Alarm')->handlers() as $method => $handler) {