From: Michael J. Rubinsky Date: Sun, 5 Sep 2010 20:32:35 +0000 (-0400) Subject: Ensure these are integers X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b0cd708e710752421205677bc049c195282741ad;p=horde.git Ensure these are integers Bug: 9217 --- diff --git a/framework/SyncML/SyncML/Command/Alert.php b/framework/SyncML/SyncML/Command/Alert.php index aa0d82460..6e1a26af2 100644 --- a/framework/SyncML/SyncML/Command/Alert.php +++ b/framework/SyncML/SyncML/Command/Alert.php @@ -288,7 +288,7 @@ class SyncML_Command_Alert extends SyncML_Command { $sync = new SyncML_Sync($synctype, $this->_targetLocURI, $this->_sourceLocURI, - $serverAnchorLast, $serverAnchorNext, + (int)$serverAnchorLast, (int)$serverAnchorNext, $clientAnchorNext); $state->setSync($this->_targetLocURI, $sync); } diff --git a/framework/SyncML/SyncML/Sync.php b/framework/SyncML/SyncML/Sync.php index 35103f9ab..7efb6723b 100644 --- a/framework/SyncML/SyncML/Sync.php +++ b/framework/SyncML/SyncML/Sync.php @@ -178,6 +178,15 @@ class SyncML_Sync { */ var $_server_task_adds; + /** + * + * @param string $syncType + * @param string $serverURI + * @param string $clientURI + * @param integer $serverAnchorLast + * @param integer $serverAnchorNext + * @param string $clientAnchorNext + */ function SyncML_Sync($syncType, $serverURI, $clientURI, $serverAnchorLast, $serverAnchorNext, $clientAnchorNext) {