You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2017/06/16 20:36:17 UTC

[14/50] [abbrv] airavata-php-gateway git commit: fixing minor issue in usernameExists

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 <su...@gmail.com>
Authored: Fri Mar 24 13:21:59 2017 -0400
Committer: scnakandala <su...@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;