airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [1/2] airavata-php-gateway git commit: adding missing curly bracket
Date Wed, 13 Jul 2016 15:24:07 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/grouper-integration 305afea17 -> 287de4a5d


adding missing curly bracket


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

Branch: refs/heads/grouper-integration
Commit: a8be155205a3e5b59357b6a1043895d2a269b4be
Parents: a6700f6
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Wed Jul 13 11:23:23 2016 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Wed Jul 13 11:23:23 2016 -0400

----------------------------------------------------------------------
 app/controllers/AccountController.php | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/a8be1552/app/controllers/AccountController.php
----------------------------------------------------------------------
diff --git a/app/controllers/AccountController.php b/app/controllers/AccountController.php
index 32ae4b0..67fd160 100644
--- a/app/controllers/AccountController.php
+++ b/app/controllers/AccountController.php
@@ -295,23 +295,23 @@ class AccountController extends BaseController
 
         $userProfile = Session::get("user-profile");
 
-        if( in_array( "gateway-provider", $userProfile["roles"]) ){
+        if( in_array( "gateway-provider", $userProfile["roles"]) ) {
             $gatewayOfUser = "";
             $gatewaysInfo = CRUtilities::getAllGateways();
-            foreach( $gatewaysInfo as $index => $gateway){
-                if( $gateway->emailAddress == $userProfile["email"]){
+            foreach ($gatewaysInfo as $index => $gateway) {
+                if ($gateway->emailAddress == $userProfile["email"]) {
                     Session::set("gateway_id", $gateway->gatewayId);
                     $gatewayOfUser = $gateway->gatewayId;
                     Session::forget("super-admin");
                     break;
                 }
             }
-            if( $gatewayOfUser == ""){
+            if ($gatewayOfUser == "") {
                 $userInfo["username"] = $userProfile["username"];
                 $userInfo["email"] = $userProfile["email"];
                 Session::put("new-gateway-provider", true);
             }
-
+        }
         $errors = array();
         if( Session::has("errors"))
             $errors = Session::get("errors");


Mime
View raw message