Need to define this variable even if we are wiping
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 8 Apr 2010 19:50:30 +0000 (15:50 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 8 Apr 2010 19:50:30 +0000 (15:50 -0400)
framework/ActiveSync/lib/Horde/ActiveSync/Request/Provision.php

index 0e77778..45c6be1 100644 (file)
@@ -84,6 +84,8 @@ class Horde_ActiveSync_Request_Provision extends Horde_ActiveSync_Request_Base
                 !$this->_decoder->getElementEndTag()) {
                 return $this->_globalError(self::STATUS_PROTERROR);
             }
+            /* Need to send *something* in the policytype field even if wiping */
+            $policytype = self::POLICYTYPE_XML;
         } else {
             if (!$this->_decoder->getElementStartTag(SYNC_PROVISION_POLICIES) ||
                 !$this->_decoder->getElementStartTag(SYNC_PROVISION_POLICY) ||