original_string: public function getUserData($login_name, $organization)
      {
          $select = $this->getUserSelect($login_name, $organization);
  
          try {
              $result = $this->db->fetchRow($select, array($login_name, $organization), \Zend_Db::FETCH_ASSOC);
          } catch (\Zend_Db_Statement_Exception $e) {
              // \MUtil_Echo::track($e->getMessage());
  
              // Yeah ugly. Can be removed when all projects have been patched to 1.8.4
              $sql = $select->__toString();
              $sql = str_replace(['`gems__user_logins`.`gul_two_factor_key`', '`gems__user_logins`.`gul_enable_2factor`'], 'NULL', $sql);
              // \MUtil_Echo::track($sql);
              try {
                  // Next try
                  $result = $this->db->fetchRow($sql, array($login_name, $organization), \Zend_Db::FETCH_ASSOC);
              } catch (\Zend_Db_Statement_Exception $e) {
                  // Can be removed when all projects have been patched to 1.6.2
                  $sql = str_replace('gup_last_pwd_change', 'gup_changed', $sql);
  
                  // Last try
                  $result = $this->db->fetchRow($sql, array($login_name, $organization), \Zend_Db::FETCH_ASSOC);
              }
          }
  
  
          /*
           * Handle the case that we have a login record, but no matching userdata (ie. user is inactive)
           * if you want some kind of auto-register you should change this
           */
          if ($result == false) {
              $result = \Gems_User_NoLoginDefinition::getNoLoginDataFor($login_name, $organization);
          }
  
          return $result;
      }
code: public function getUserData($login_name, $organization)
      {
          $select = $this->getUserSelect($login_name, $organization);
  
          try {
              $result = $this->db->fetchRow($select, array($login_name, $organization), \Zend_Db::FETCH_ASSOC);
          } catch (\Zend_Db_Statement_Exception $e) {
              // \MUtil_Echo::track($e->getMessage());
  
              // Yeah ugly. Can be removed when all projects have been patched to 1.8.4
              $sql = $select->__toString();
              $sql = str_replace(['`gems__user_logins`.`gul_two_factor_key`', '`gems__user_logins`.`gul_enable_2factor`'], 'NULL', $sql);
              // \MUtil_Echo::track($sql);
              try {
                  // Next try
                  $result = $this->db->fetchRow($sql, array($login_name, $organization), \Zend_Db::FETCH_ASSOC);
              } catch (\Zend_Db_Statement_Exception $e) {
                  // Can be removed when all projects have been patched to 1.6.2
                  $sql = str_replace('gup_last_pwd_change', 'gup_changed', $sql);
  
                  // Last try
                  $result = $this->db->fetchRow($sql, array($login_name, $organization), \Zend_Db::FETCH_ASSOC);
              }
          }
  
  
          /*
           * Handle the case that we have a login record, but no matching userdata (ie. user is inactive)
           * if you want some kind of auto-register you should change this
           */
          if ($result == false) {
              $result = \Gems_User_NoLoginDefinition::getNoLoginDataFor($login_name, $organization);
          }
  
          return $result;
      }
code_tokens: public function getUserData ( $ login_name , $ organization ) { $ select = $ this -> getUserSelect ( $ login_name , $ organization ) ; try { $ result = $ this -> db -> fetchRow ( $ select , array ( $ login_name , $ organization ) , \ Zend_Db :: FETCH_ASSOC ) ; } catch ( \ Zend_Db_Statement_Exception $ e ) { // \MUtil_Echo::track($e->getMessage()); // Yeah ugly. Can be removed when all projects have been patched to 1.8.4 $ sql = $ select -> __toString ( ) ; $ sql = str_replace ( [ '`gems__user_logins`.`gul_two_factor_key`' , '`gems__user_logins`.`gul_enable_2factor`' ] , 'NULL' , $ sql ) ; // \MUtil_Echo::track($sql); try { // Next try $ result = $ this -> db -> fetchRow ( $ sql , array ( $ login_name , $ organization ) , \ Zend_Db :: FETCH_ASSOC ) ; } catch ( \ Zend_Db_Statement_Exception $ e ) { // Can be removed when all projects have been patched to 1.6.2 $ sql = str_replace ( 'gup_last_pwd_change' , 'gup_changed' , $ sql ) ; // Last try $ result = $ this -> db -> fetchRow ( $ sql , array ( $ login_name , $ organization ) , \ Zend_Db :: FETCH_ASSOC ) ; } } /*
           * Handle the case that we have a login record, but no matching userdata (ie. user is inactive)
           * if you want some kind of auto-register you should change this
           */ if ( $ result == false ) { $ result = \ Gems_User_NoLoginDefinition :: getNoLoginDataFor ( $ login_name , $ organization ) ; } return $ result ; }
docstring: Returns a user object, that may be empty if the user is unknown.
  
  @param string $login_name
  @param int $organization
  @return array Of data to fill the user with.
docstring_tokens: Returns a user object that may be empty if the user is unknown .