Don't go through the PROVISION process if we have it disabled.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 29 Apr 2010 20:46:04 +0000 (16:46 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 29 Apr 2010 20:46:04 +0000 (16:46 -0400)
framework/ActiveSync/lib/Horde/ActiveSync/Request/Provision.php

index 22ff75f..9133694 100644 (file)
@@ -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 */