existence check
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 10 May 2010 21:17:19 +0000 (17:17 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 10 May 2010 21:17:44 +0000 (17:17 -0400)
framework/ActiveSync/lib/Horde/ActiveSync/Request/Ping.php

index 4d87100..dc92565 100644 (file)
@@ -40,7 +40,7 @@ class Horde_ActiveSync_Request_Ping extends Horde_ActiveSync_Request_Base
 
     protected function _checkHeartbeat($lifetime)
     {
-        if ($this->_ping_settings['forcedheartbeat']) {
+        if (!empty($this->_ping_settings['forcedheartbeat'])) {
             return $this->_ping_settings['forcedheartbeat'];
         }
         if ($lifetime !== 0 && $lifetime < $this->_ping_settings['heartbeatmin']) {