airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject airavata-php-gateway git commit: adding condition check for experiment inputs
Date Sun, 30 Aug 2015 13:33:46 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/master b78f5a75b -> 7889c25e8


adding condition check for experiment inputs


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/7889c25e
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/7889c25e
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/7889c25e

Branch: refs/heads/master
Commit: 7889c25e876b94890cb1c01cb121383169ccf6d6
Parents: b78f5a7
Author: Supun Nakandala <scnakandala@apache.org>
Authored: Sun Aug 30 19:03:04 2015 +0530
Committer: Supun Nakandala <scnakandala@apache.org>
Committed: Sun Aug 30 19:03:04 2015 +0530

----------------------------------------------------------------------
 app/libraries/ExperimentUtilities.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/7889c25e/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index a8cc9b2..499b78f 100644
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -502,7 +502,10 @@ class ExperimentUtilities
         foreach ($inputs as $index => $input) {
             $order[$index] = $input->inputOrder;
         }
-        array_multisort($order, SORT_ASC, $inputs);
+        if($inputs != null){
+            array_multisort($order, SORT_ASC, $inputs);
+        }
+
         //var_dump( $inputs); exit;
         foreach ($inputs as $input) {
             switch ($input->type) {


Mime
View raw message