Fix empty Sync Anchor issue (eg. with Samsung devices)

This commit is contained in:
Jörg Lehrke 2010-04-16 15:26:48 +00:00
parent 9b441faaf1
commit 7920304f13

View File

@ -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);