You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2016/07/07 19:27:42 UTC

[38/50] [abbrv] airavata-php-gateway git commit: fixing bug

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/master
Commit: 9de814f69e87815df2dd2f8a0a775af6a7d66822
Parents: 86e501f
Author: scnakandala <su...@gmail.com>
Authored: Tue Jul 5 17:51:12 2016 -0400
Committer: scnakandala <su...@gmail.com>
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;