updating experiment-partials view to check nullity of appInt. and CR.

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

Branch: refs/heads/master
Commit: 6e33674aa62d33848587ceb57caa918cb24efb96
Parents: 378c475
Author: Supun Nakandala <[email protected]>
Authored: Tue Jun 30 21:59:38 2015 +0530
Committer: Supun Nakandala <[email protected]>
Committed: Tue Jun 30 22:03:12 2015 +0530

----------------------------------------------------------------------
 app/views/partials/experiment-info.blade.php | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/6e33674a/app/views/partials/experiment-info.blade.php
----------------------------------------------------------------------
diff --git a/app/views/partials/experiment-info.blade.php 
b/app/views/partials/experiment-info.blade.php
index 623eb53..782f580 100644
--- a/app/views/partials/experiment-info.blade.php
+++ b/app/views/partials/experiment-info.blade.php
@@ -33,11 +33,15 @@
         </tr>
         <tr>
             <td><strong>Application</strong></td>
-            <td><?php echo $expVal["applicationInterface"]->applicationName; 
?></td>
+            <td><?php if (!empty($expVal["applicationInterface"])) {
+                    echo $expVal["applicationInterface"]->applicationName;
+                } ?></td>
         </tr>
         <tr>
             <td><strong>Compute resource</strong></td>
-            <td><?php echo $expVal["computeResource"]->hostName; ?></td>
+            <td><?php if (!empty($expVal["computeResource"])) {
+                    $expVal["computeResource"]->hostName;
+                } ?></td>
         </tr>
         <tr>
             <td><strong>Experiment Status</strong></td>

Reply via email to