Commit fe50c33d authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #631 in ZP/z-push from...

Merge pull request #631 in ZP/z-push from bugfix/ZP-1326-airwatch-boxer-not-working-on-ios2 to develop

* commit '0d5ab75f':
  ZP-1326 Fixed whitespace.
  ZP-1326 Fixed working with empty tags.
parents fd4ae4bb 0d5ab75f
......@@ -229,13 +229,17 @@ class Sync extends RequestProcessor {
// Get changes can be an empty tag as well as have value
// code block partly contributed by dw2412
if(self::$decoder->getElementStartTag(SYNC_GETCHANGES)) {
if($starttag = self::$decoder->getElementStartTag(SYNC_GETCHANGES)) {
$sc->AddParameter($spa, "getchanges", true);
if (($gc = self::$decoder->getElementContent()) !== false) {
$sc->AddParameter($spa, "getchanges", $gc);
}
// read the endtag if it's there, but don't fail if it isn't
self::$decoder->getElementEndTag();
// read the endtag if SYNC_GETCHANGES wasn't an empty tag
if ($starttag[EN_FLAGS] & EN_FLAGS_CONTENT) {
if (!self::$decoder->getElementEndTag()) {
return false;
}
}
}
if(self::$decoder->getElementStartTag(SYNC_WINDOWSIZE)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment