瀏覽代碼

fix typo and comment

tags/v8.1.0alpha1
Morris Jobke 9 年之前
父節點
當前提交
1427ea78d4
共有 2 個檔案被更改,包括 3 行新增3 行删除
  1. 2
    2
      apps/user_ldap/lib/connection.php
  2. 1
    1
      apps/user_ldap/lib/user/manager.php

+ 2
- 2
apps/user_ldap/lib/connection.php 查看文件

@@ -56,7 +56,7 @@ class Connection extends LDAPUtility {
//cache handler
protected $cache;

//settings handler
/** @var Configuration settings handler **/
protected $configuration;

protected $doNotValidate = false;
@@ -169,7 +169,7 @@ class Connection extends LDAPUtility {
$this->establishConnection();
}
if(is_null($this->ldapConnectionRes)) {
\OCP\Util::writeLog('user_ldap', 'No LDAP Connection to server ' . $this->connection->ldapHost, \OCP\Util::ERROR);
\OCP\Util::writeLog('user_ldap', 'No LDAP Connection to server ' . $this->configuration->ldapHost, \OCP\Util::ERROR);
throw new ServerNotAvailableException('Connection to LDAP server could not be established');
}
return $this->ldapConnectionRes;

+ 1
- 1
apps/user_ldap/lib/user/manager.php 查看文件

@@ -168,7 +168,7 @@ class Manager {

/**
* @brief returns a User object by it's DN or ownCloud username
* @param string the username of the user
* @param string the DN or username of the user
* @return \OCA\user_ldap\lib\user\User|\OCA\user_ldap\lib\user\OfflineUser|null
* @throws \Exception when connection could not be established
*/

Loading…
取消
儲存