Commit 6dc871e3 authored by skummer's avatar skummer

ZP-528 #comment only enter perform block when there is content sent (should ignore empty tag)

git-svn-id: https://z-push.org/svn/z-push/trunk@1883 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent a1f7aae8
...@@ -358,7 +358,7 @@ class Sync extends RequestProcessor { ...@@ -358,7 +358,7 @@ class Sync extends RequestProcessor {
ZLog::Write(LOGLEVEL_DEBUG, "HierarchyCache is also not available. Triggering HierarchySync to device"); ZLog::Write(LOGLEVEL_DEBUG, "HierarchyCache is also not available. Triggering HierarchySync to device");
} }
if(self::$decoder->getElementStartTag(SYNC_PERFORM)) { if(($el = self::$decoder->getElementStartTag(SYNC_PERFORM)) && ($el[EN_FLAGS] & EN_FLAGS_CONTENT)) {
// We can not proceed here as the content class is unknown // We can not proceed here as the content class is unknown
if ($status != SYNC_STATUS_SUCCESS) { if ($status != SYNC_STATUS_SUCCESS) {
ZLog::Write(LOGLEVEL_WARN, "Ignoring all incoming actions as global status indicates problem."); ZLog::Write(LOGLEVEL_WARN, "Ignoring all incoming actions as global status indicates problem.");
......
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