Commit 7ed7ca5d authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-749 Removed InWhile functionality.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 1196f919
......@@ -74,9 +74,8 @@ class Provisioning extends RequestProcessor {
// - Remote Wipe
// - DeviceInformation
// - Policies
// Each of them should only be once per request.
WBXMLDecoder::ResetInWhile("provisioningMain");
while(WBXMLDecoder::InWhile("provisioningMain")) {
// Each of them should only be once per request.
while(1) {
$requestName = "";
if (self::$decoder->getElementStartTag(SYNC_PROVISION_REMOTEWIPE)) {
$requestName = SYNC_PROVISION_REMOTEWIPE;
......@@ -88,7 +87,7 @@ class Provisioning extends RequestProcessor {
$requestName = SYNC_SETTINGS_DEVICEINFORMATION;
}
if (!$requestName)
if (!$requestName)
break;
//set is available for OOF, device password and device information
......@@ -150,7 +149,7 @@ class Provisioning extends RequestProcessor {
case SYNC_SETTINGS_DEVICEINFORMATION:
// AS14.1 and later clients pass Device Information on the initial Provision request
if (!self::$decoder->getElementStartTag(SYNC_SETTINGS_SET))
if (!self::$decoder->getElementStartTag(SYNC_SETTINGS_SET))
return false;
$deviceInfoSet = true;
$deviceinformation = new SyncDeviceInformation();
......@@ -264,4 +263,4 @@ class Provisioning extends RequestProcessor {
return true;
}
}
?>
?>
\ No newline at end of file
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