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/09/07 20:11:04 UTC
airavata-php-gateway git commit: fixing last modified time for
experiment
Repository: airavata-php-gateway
Updated Branches:
refs/heads/develop 35c1de4cd -> 188b67306
fixing last modified time for experiment
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/188b6730
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/188b6730
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/188b6730
Branch: refs/heads/develop
Commit: 188b673064ff367a6d4797e505dedd5f1198a978
Parents: 35c1de4
Author: scnakandala <su...@gmail.com>
Authored: Wed Sep 7 16:11:01 2016 -0400
Committer: scnakandala <su...@gmail.com>
Committed: Wed Sep 7 16:11:01 2016 -0400
----------------------------------------------------------------------
app/libraries/ExperimentUtilities.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/188b6730/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index f58a3c4..4d38c7c 100755
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -964,8 +964,8 @@ class ExperimentUtilities
if ($experiment->experimentStatus != null) {
$experimentStatus = $experiment->experimentStatus;
- if( is_object( $experiment->experimentStatus ) )
- $expVal["experimentTimeOfStateChange"] = $experimentStatus->timeOfStateChange / 1000; // divide by 1000 since timeOfStateChange is in ms
+ if( is_array( $experiment->experimentStatus ) )
+ $expVal["experimentTimeOfStateChange"] = $experimentStatus[0]->timeOfStateChange / 1000; // divide by 1000 since timeOfStateChange is in ms
$expVal["experimentCreationTime"] = $experiment->creationTime / 1000; // divide by 1000 since creationTime is in ms
}