make sure pingState is always an array
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 25 Apr 2010 18:22:26 +0000 (14:22 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 25 Apr 2010 18:22:26 +0000 (14:22 -0400)
framework/ActiveSync/lib/Horde/ActiveSync/State/History.php

index 6d293f7..81a4968 100644 (file)
@@ -420,7 +420,7 @@ class Horde_ActiveSync_State_History extends Horde_ActiveSync_State_Base
             $this->_deviceInfo->user = $result['device_user'];
             $this->_deviceInfo->supported = unserialize($result['device_supported']);
             if ($result['device_ping']) {
-                $this->_pingState = unserialize($result['device_ping']);
+                $this->_pingState = empty($result['device_ping']) ? array() : unserialize($result['device_ping']);
             } else {
                 $this->resetPingState();
             }