Ensure these are integers
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 5 Sep 2010 20:32:35 +0000 (16:32 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 5 Sep 2010 20:33:35 +0000 (16:33 -0400)
Bug: 9217

framework/SyncML/SyncML/Command/Alert.php
framework/SyncML/SyncML/Sync.php

index aa0d824..6e1a26a 100644 (file)
@@ -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);
         }
index 35103f9..7efb672 100644 (file)
@@ -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)
     {