Another place to ensure the state directory exists
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 31 Mar 2010 00:22:06 +0000 (20:22 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 31 Mar 2010 00:22:06 +0000 (20:22 -0400)
framework/ActiveSync/lib/Horde/ActiveSync/State/File.php

index 83e9d65..b430658 100644 (file)
@@ -476,6 +476,7 @@ class Horde_ActiveSync_State_File extends Horde_ActiveSync_State_Base
         if (empty($this->_pingState)) {
             throw new Horde_ActiveSync_Exception('PING state not initialized');
         }
+        $this->_ensureUserDirectory();
         $state = serialize(array('lifetime' => $this->_pingState['lifetime'],
                                  'collections' => $this->_pingState['collections']));