/**
* Ensure the PIM's policy key is current.
*
- * @param <type> $devId
- * @return <type>
+ * @param integer $sentKey The policykey sent to us by the PIM
+ *
+ * @return boolean
*/
public function checkPolicyKey($sentKey)
{
/* Loose provsioning should allow a blank key */
if ((empty($storedKey) || $storedKey != $sentKey) &&
($this->_provisioning !== 'loose' ||
- ($this->_provisioning === 'loose' && !is_null($this->_policyKey)))) {
+ ($this->_provisioning === 'loose' && !is_null($sentKey)))) {
Horde_ActiveSync::provisioningRequired();
return false;