define the state directory
authorMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 30 Mar 2010 14:17:20 +0000 (10:17 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 30 Mar 2010 16:56:15 +0000 (12:56 -0400)
framework/ActiveSync/lib/Horde/ActiveSync/State/File.php

index 1328aa6..83e9d65 100644 (file)
@@ -124,7 +124,7 @@ class Horde_ActiveSync_State_File extends Horde_ActiveSync_State_Base
         $this->_gc($syncKey);
 
         /* Read current sync state */
-        $filename = $dir . '/' . $syncKey;
+        $filename = $this->_stateDir . '/' . $this->_backend->getUser() . '/' . $syncKey;
         if (!file_exists($filename)) {
             throw new Horde_ActiveSync_Exception('Sync state not found');
         }