Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop 86e501fa3 -> 9de814f69


fixing bug


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/9de814f6
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/9de814f6
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/9de814f6

Branch: refs/heads/develop
Commit: 9de814f69e87815df2dd2f8a0a775af6a7d66822
Parents: 86e501f
Author: scnakandala <[email protected]>
Authored: Tue Jul 5 17:51:12 2016 -0400
Committer: scnakandala <[email protected]>
Committed: Tue Jul 5 17:51:12 2016 -0400

----------------------------------------------------------------------
 app/libraries/ExperimentUtilities.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/9de814f6/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php 
b/app/libraries/ExperimentUtilities.php
index 7ef6e86..202c2e0 100644
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -468,7 +468,7 @@ class ExperimentUtilities
                 $uri = 
Airavata::registerDataProduct(Session::get('authz-token'), $dataProductModel);
                 $uriList = $uriList . $uri . ",";
             }
-            $uriList = substr($uriList, -1);
+            $uriList = substr($uriList,0, strlen($uriList) - 1);
             $optInput = new InputDataObjectType();
             $optInput->name = "Optional-File-Input-List";
             $optInput->type = DataType::URI_COLLECTION;

Reply via email to