Use the configured heartbeat default
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 18 Apr 2010 16:44:11 +0000 (12:44 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 18 Apr 2010 16:44:11 +0000 (12:44 -0400)
framework/ActiveSync/lib/Horde/ActiveSync/Request/Ping.php

index 436477c..4e4fe51 100644 (file)
@@ -106,6 +106,10 @@ class Horde_ActiveSync_Request_Ping extends Horde_ActiveSync_Request_Base
                 $this->_decoder->getElementEndTag();
             }
 
+            if ($lifetime == 0) {
+                $lifetime = $ping_settings['heartbeatdefault'];
+            }
+
             if ($this->_decoder->getElementStartTag(self::FOLDERS)) {
                 $collections = array();
                 while ($this->_decoder->getElementStartTag(self::FOLDER)) {