No need to have device loaded first here.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 12 May 2010 18:26:42 +0000 (14:26 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 12 May 2010 18:28:19 +0000 (14:28 -0400)
framework/ActiveSync/lib/Horde/ActiveSync/State/History.php

index 22acdee..1abfa0f 100644 (file)
@@ -784,10 +784,6 @@ class Horde_ActiveSync_State_History extends Horde_ActiveSync_State_Base
      */
     public function setDeviceRWStatus($devId, $status)
     {
-        if (empty($this->_deviceInfo) || $devId != $this->_deviceInfo->id) {
-            throw new Horde_ActiveSync_Exception('Device not loaded');
-        }
-
         $query = 'UPDATE ' . $this->_syncDeviceTable . ' SET device_rwstatus = ?';
         $values = array($status);