mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:31 +01:00
fixed handling of ALERT 222
This commit is contained in:
parent
a805ab89c1
commit
ee05cd3a34
@ -312,10 +312,9 @@ class Horde_SyncML_Command_Alert extends Horde_SyncML_Command {
|
|||||||
switch ($this->_xmlStack) {
|
switch ($this->_xmlStack) {
|
||||||
case 1:
|
case 1:
|
||||||
$state = & $_SESSION['SyncML.state'];
|
$state = & $_SESSION['SyncML.state'];
|
||||||
Horde::logMessage('SyncML: looking for sync for ' . $this->_targetLocURI, __FILE__, __LINE__, PEAR_LOG_DEBUG);
|
|
||||||
$sync = $state->getSync($this->_targetLocURI);
|
$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);
|
Horde::logMessage('SyncML: create new sync for ' . $this->_targetLocURI . ' ' . $this->_alert, __FILE__, __LINE__, PEAR_LOG_DEBUG);
|
||||||
$sync = &Horde_SyncML_Sync::factory($this->_alert);
|
$sync = &Horde_SyncML_Sync::factory($this->_alert);
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@ class Horde_SyncML_Sync {
|
|||||||
|
|
||||||
function &factory($alert)
|
function &factory($alert)
|
||||||
{
|
{
|
||||||
|
Horde::logMessage('SyncML: new sync for alerttype ' . $alert, __FILE__, __LINE__, PEAR_LOG_DEBUG);
|
||||||
switch ($alert) {
|
switch ($alert) {
|
||||||
case ALERT_TWO_WAY:
|
case ALERT_TWO_WAY:
|
||||||
include_once 'Horde/SyncML/Sync/TwoWaySync.php';
|
include_once 'Horde/SyncML/Sync/TwoWaySync.php';
|
||||||
|
Loading…
Reference in New Issue
Block a user