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/07/13 15:23:33 UTC
airavata-php-gateway git commit: adding missing curly bracket
Repository: airavata-php-gateway
Updated Branches:
refs/heads/develop a6700f6a4 -> a8be15520
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/develop
Commit: a8be155205a3e5b59357b6a1043895d2a269b4be
Parents: a6700f6
Author: scnakandala <su...@gmail.com>
Authored: Wed Jul 13 11:23:23 2016 -0400
Committer: scnakandala <su...@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");