removed organizer as required field

This commit is contained in:
Lars Kneschke 2005-07-29 07:31:30 +00:00
parent 8d4c01bf4b
commit 7dc342e317
2 changed files with 11 additions and 1 deletions

View File

@ -427,6 +427,8 @@ class Horde_SyncML_SyncMLBody extends Horde_SyncML_ContentHandler {
var $_actionCommands = false; var $_actionCommands = false;
var $_clientSentFinal = false;
function startElement($uri, $element, $attrs) function startElement($uri, $element, $attrs)
{ {
parent::startElement($uri, $element, $attrs); parent::startElement($uri, $element, $attrs);
@ -536,6 +538,13 @@ class Horde_SyncML_SyncMLBody extends Horde_SyncML_ContentHandler {
} }
Horde::logMessage('SyncML: summary:' . $s, __FILE__, __LINE__, PEAR_LOG_INFO); Horde::logMessage('SyncML: summary:' . $s, __FILE__, __LINE__, PEAR_LOG_INFO);
// session can be closed here! // session can be closed here!
#session_unset();
#session_destroy();
}
if (!$this->_actionCommands && $state->getSyncStatus() == SERVER_SYNC_FINNISHED && $this->_clientSentFinal) {
Horde::logMessage('SyncML: destroying sync session '.session_id(), __FILE__, __LINE__, PEAR_LOG_INFO);
// session can be closed here!
session_unset(); session_unset();
session_destroy(); session_destroy();
} }
@ -582,6 +591,7 @@ class Horde_SyncML_SyncMLBody extends Horde_SyncML_ContentHandler {
{ {
$state->setSyncStatus(CLIENT_SYNC_FINNISHED); $state->setSyncStatus(CLIENT_SYNC_FINNISHED);
} }
$this->_clientSentFinal = true;
Horde::logMessage('SyncML: Sync _syncTag = '. $state->getSyncStatus(), __FILE__, __LINE__, PEAR_LOG_INFO); Horde::logMessage('SyncML: Sync _syncTag = '. $state->getSyncStatus(), __FILE__, __LINE__, PEAR_LOG_INFO);
break; break;
default: default:

View File

@ -31,7 +31,7 @@ class Horde_iCalendar_vevent extends Horde_iCalendar {
// Default values. // Default values.
$requiredAttributes = array(); $requiredAttributes = array();
$requiredAttributes['DTSTAMP'] = time(); $requiredAttributes['DTSTAMP'] = time();
$requiredAttributes['ORGANIZER'] = 'Unknown Organizer'; #$requiredAttributes['ORGANIZER'] = 'Unknown Organizer';
$requiredAttributes['UID'] = $this->_exportDateTime(time()) . '@' . $_SERVER['SERVER_NAME']; $requiredAttributes['UID'] = $this->_exportDateTime(time()) . '@' . $_SERVER['SERVER_NAME'];
$method = !empty($this->_container) ? $method = !empty($this->_container) ?