You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by di...@apache.org on 2019/05/09 04:27:20 UTC
[airavata-php-gateway] branch staging updated: Looking whether job
statuses are empty before reading
This is an automated email from the ASF dual-hosted git repository.
dimuthuupe pushed a commit to branch staging
in repository https://gitbox.apache.org/repos/asf/airavata-php-gateway.git
The following commit(s) were added to refs/heads/staging by this push:
new 29ad008 Looking whether job statuses are empty before reading
29ad008 is described below
commit 29ad00869f24e56e2c1993ad4604eca6e01f74ea
Author: Dimuthu Wannipurage <di...@gmail.com>
AuthorDate: Thu May 9 00:27:11 2019 -0400
Looking whether job statuses are empty before reading
---
app/controllers/ExperimentController.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/controllers/ExperimentController.php b/app/controllers/ExperimentController.php
index cceba6a..606c1f3 100755
--- a/app/controllers/ExperimentController.php
+++ b/app/controllers/ExperimentController.php
@@ -176,7 +176,7 @@ class ExperimentController extends BaseController
$jobDetails = ExperimentUtilities::get_job_details($experiment->experimentId);
// var_dump( $jobDetails); exit;
foreach( $jobDetails as $index => $jobDetail){
- if(isset($jobDetail->jobStatuses)){
+ if(isset($jobDetail->jobStatuses) and !empty($jobDetail->jobStatuses)){
$jobDetails[ $index]->jobStatuses[0]->jobStateName = JobState::$__names[$jobDetail->jobStatuses[0]->jobState];
}
else{