From 57d981681b216f5ed0bf9ccb1a840d6e90f0bd6e Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sun, 18 Apr 2010 12:44:11 -0400 Subject: [PATCH] Use the configured heartbeat default --- framework/ActiveSync/lib/Horde/ActiveSync/Request/Ping.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Request/Ping.php b/framework/ActiveSync/lib/Horde/ActiveSync/Request/Ping.php index 436477c89..4e4fe51da 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Request/Ping.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Request/Ping.php @@ -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)) { -- 2.11.0