airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [14/50] [abbrv] airavata-php-gateway git commit: fixing minor issue in usernameExists
Date Fri, 16 Jun 2017 20:36:17 GMT
fixing minor issue in usernameExists


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

Branch: refs/heads/develop
Commit: 9a9e450c0f46f1994d38ce8c0f8ebbdbca972d64
Parents: 501460f
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Fri Mar 24 13:21:59 2017 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Fri Mar 24 13:21:59 2017 -0400

----------------------------------------------------------------------
 app/libraries/Keycloak/Keycloak.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/9a9e450c/app/libraries/Keycloak/Keycloak.php
----------------------------------------------------------------------
diff --git a/app/libraries/Keycloak/Keycloak.php b/app/libraries/Keycloak/Keycloak.php
index aeac3ad..3f12593 100644
--- a/app/libraries/Keycloak/Keycloak.php
+++ b/app/libraries/Keycloak/Keycloak.php
@@ -240,7 +240,7 @@ class Keycloak {
     public function usernameExists($user_id){
         try{
             $users = $this->users->getUsers($this->realm, $user_id);
-            return $users != null && len($users) > 0;
+            return $users != null && count($users) > 0;
         }catch (Exception $ex){
             // Username does not exists
             return false;


Mime
View raw message