From: Michael J. Rubinsky Date: Thu, 29 Apr 2010 20:46:04 +0000 (-0400) Subject: Don't go through the PROVISION process if we have it disabled. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3f9f849102fb28d7a50757613d15a2a46de8ca10;p=horde.git Don't go through the PROVISION process if we have it disabled. --- diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Request/Provision.php b/framework/ActiveSync/lib/Horde/ActiveSync/Request/Provision.php index 22ff75f93..9133694cd 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Request/Provision.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Request/Provision.php @@ -101,6 +101,14 @@ class Horde_ActiveSync_Request_Provision extends Horde_ActiveSync_Request_Base /* Check to be sure that we *need* to PROVISION */ if ($this->_provisioning === false) { $policyStatus = self::STATUS_NOTDEFINED; + $this->_encoder->startWBXML(); + $this->_encoder->startTag(Horde_ActiveSync::PROVISION_PROVISION); + $this->_encoder->startTag(Horde_ActiveSync::PROVISION_STATUS); + $this->_encoder->content($status); + $this->_encoder->endTag(); + $this->_encoder->endTag(); + + return true; } /* POLICYKEY is only sent by client in phase 3 */