Skip to content

Commit

Permalink
We need to treat policykey as a string value.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Oct 8, 2013
1 parent 20e4e06 commit 3ec032b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/ActiveSync/lib/Horde/ActiveSync/State/Mongo.php
Expand Up @@ -787,9 +787,9 @@ public function setPolicyKey($devId, $key)
$this->_logger->err('Device not loaded');
throw new Horde_ActiveSync_Exception('Device not loaded');
}

$this->_logger->debug(sprintf('Setting policykey: %s, %s, %s', $devId, $this->_backend->getUser(), $key));
$query = array('_id' => $devId, 'users.device_user' => $this->_backend->getUser());
$update = array('$set' => array('users.$.device_policykey' => $key));
$update = array('$set' => array('users.$.device_policykey' => "$key"));
try {
$this->_db->device->update($query, $update);
} catch (Exception $e) {
Expand Down

0 comments on commit 3ec032b

Please sign in to comment.