Skip to content

Commit

Permalink
No longer have this restriction now that we have a true ORGANIZER field.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Dec 18, 2015
1 parent 61dc297 commit 21abcf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kronolith/config/prefs.php
Expand Up @@ -275,9 +275,9 @@
$enum = array();
$sync = @unserialize($GLOBALS['prefs']->getValue('sync_calendars'));
if (empty($sync)) {
$GLOBALS['prefs']->setValue('sync_calendars', serialize(array(Kronolith::getDefaultCalendar(Horde_Perms::EDIT, !$GLOBALS['prefs']->getValue('activesync_no_multiplex')))));
$GLOBALS['prefs']->setValue('sync_calendars', serialize(array(Kronolith::getDefaultCalendar(Horde_Perms::EDIT))));
}
foreach (Kronolith::listInternalCalendars(!$GLOBALS['prefs']->getValue('activesync_no_multiplex'), Horde_Perms::EDIT) as $key => $cal) {
foreach (Kronolith::listInternalCalendars(false, Horde_Perms::EDIT) as $key => $cal) {
if ($cal->getName() != Kronolith::getDefaultCalendar(Horde_Perms::EDIT)) {
$enum[$key] = Kronolith::getLabel($cal);
}
Expand All @@ -298,7 +298,7 @@
$sync[] = $default;
$GLOBALS['prefs']->setValue('sync_calendars', serialize($sync));
}
if ($GLOBALS['conf']['activesync']['enabled'] && !$GLOBALS['prefs']->getValue('activesync_no_multiplex')) {
if ($GLOBALS['conf']['activesync']['enabled']) {
try {
$sm = $GLOBALS['injector']->getInstance('Horde_ActiveSyncState');
$sm->setLogger($GLOBALS['injector']->getInstance('Horde_Log_Logger'));
Expand Down

0 comments on commit 21abcf1

Please sign in to comment.