fixed handling of ALERT 222

This commit is contained in:
Lars Kneschke 2005-07-26 07:22:58 +00:00
parent a805ab89c1
commit ee05cd3a34
2 changed files with 2 additions and 2 deletions

View File

@ -312,10 +312,9 @@ class Horde_SyncML_Command_Alert extends Horde_SyncML_Command {
switch ($this->_xmlStack) {
case 1:
$state = & $_SESSION['SyncML.state'];
Horde::logMessage('SyncML: looking for sync for ' . $this->_targetLocURI, __FILE__, __LINE__, PEAR_LOG_DEBUG);
$sync = $state->getSync($this->_targetLocURI);
if (!$sync) {
if (!$sync && $this->_alert < ALERT_RESULT_ALERT) {
Horde::logMessage('SyncML: create new sync for ' . $this->_targetLocURI . ' ' . $this->_alert, __FILE__, __LINE__, PEAR_LOG_DEBUG);
$sync = &Horde_SyncML_Sync::factory($this->_alert);

View File

@ -38,6 +38,7 @@ class Horde_SyncML_Sync {
function &factory($alert)
{
Horde::logMessage('SyncML: new sync for alerttype ' . $alert, __FILE__, __LINE__, PEAR_LOG_DEBUG);
switch ($alert) {
case ALERT_TWO_WAY:
include_once 'Horde/SyncML/Sync/TwoWaySync.php';