From 7728281dcc3d6ae281098ce614a11dbd03ddea65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Lehrke?= Date: Fri, 16 Apr 2010 15:23:10 +0000 Subject: [PATCH] Fix empty Sync Anchor issue (eg. with Samsung devices) --- phpgwapi/inc/horde/Horde/SyncML/Command/Alert.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/horde/Horde/SyncML/Command/Alert.php b/phpgwapi/inc/horde/Horde/SyncML/Command/Alert.php index 61e057ea3c..647a3f447b 100644 --- a/phpgwapi/inc/horde/Horde/SyncML/Command/Alert.php +++ b/phpgwapi/inc/horde/Horde/SyncML/Command/Alert.php @@ -383,7 +383,7 @@ class Horde_SyncML_Command_Alert extends Horde_SyncML_Command { $output->startElement($state->getURIMeta(), 'Last', $attrs); $chars = $state->getServerAnchorLast($type); - $output->characters($chars); + $output->characters($chars ? $chars : '0'); // Some devices don't like empty anchors $output->endElement($state->getURIMeta(), 'Last'); $output->startElement($state->getURIMeta(), 'Next', $attrs);