diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2011-11-08 12:47:41 +0100 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2011-11-08 12:47:41 +0100 |
commit | 1520b0b67e7ec0129f40e8795eb7ffde4e7c2aac (patch) | |
tree | a30530d279220af11b8c47f0d1f8e1654f2dee97 /start.php | |
parent | db951f94b6ae60f899f719f17dce4aa6c47edf54 (diff) | |
download | elgg-1520b0b67e7ec0129f40e8795eb7ffde4e7c2aac.tar.gz elgg-1520b0b67e7ec0129f40e8795eb7ffde4e7c2aac.tar.bz2 |
iCalendar fixes.
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -337,11 +337,13 @@ function event_calendar_entity_menu_setup($hook, $type, $return, $params) { function event_calendar_entity_menu_prepare($hook, $type, $return, $params) { // remove access level from listings - if (!elgg_in_context('event_calendar:view')) { + if (elgg_in_context('event_calendar') && !elgg_in_context('event_calendar:view')) { $new_return = array(); - foreach($return['default'] AS $item) { - if ($item->getName() != 'access') { - $new_return[] = $item; + if ($return['default']) { + foreach($return['default'] AS $item) { + if ($item->getName() != 'access') { + $new_return[] = $item; + } } } $return['default'] = $new_return; |