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/11/23 16:57:10 UTC

airavata-php-gateway git commit: checking experiment is set

Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop 82fffb201 -> dc8f8287d


checking experiment is set


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

Branch: refs/heads/develop
Commit: dc8f8287d759b1d94881734684dea9d5438396d4
Parents: 82fffb2
Author: scnakandala <su...@gmail.com>
Authored: Wed Nov 23 11:57:07 2016 -0500
Committer: scnakandala <su...@gmail.com>
Committed: Wed Nov 23 11:57:07 2016 -0500

----------------------------------------------------------------------
 app/views/partials/experiment-inputs.blade.php | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/dc8f8287/app/views/partials/experiment-inputs.blade.php
----------------------------------------------------------------------
diff --git a/app/views/partials/experiment-inputs.blade.php b/app/views/partials/experiment-inputs.blade.php
index e2007fa..5aecf6b 100644
--- a/app/views/partials/experiment-inputs.blade.php
+++ b/app/views/partials/experiment-inputs.blade.php
@@ -110,10 +110,12 @@
     <div class="form-group well">
         <label for=""></label>
         <?php
-            $emails = $expInputs['experiment']->emailAddresses;
             $hasEmails = false;
-            if(!empty($emails) and count($emails) > 0){
-                $hasEmails=true;
+            if(!empty($expInputs['experiment'])){
+                $emails = $expInputs['experiment']->emailAddresses;
+                if(!empty($emails) and count($emails) > 0){
+                    $hasEmails=true;
+                }
             }
         ?>
         <input type="checkbox" id="enableEmail" name="enableEmailNotification" value="1" <?php if($hasEmails) echo 'checked' ?>> Do you want to receive email