Ldap\Connection: Drop parameter $fields from method fetchDn()

This commit is contained in:
Johannes Meyer 2015-06-23 15:56:29 +02:00
parent 87e31f497e
commit c32f9ae735
1 changed files with 2 additions and 3 deletions

View File

@ -265,14 +265,13 @@ class Connection implements Selectable
* Fetch the distinguished name of the first result of the given query * Fetch the distinguished name of the first result of the given query
* *
* @param Query $query The query returning the result set * @param Query $query The query returning the result set
* @param array $fields The fields to fetch
* *
* @return string Returns the distinguished name, or false when the given query yields no results * @return string Returns the distinguished name, or false when the given query yields no results
* @throws LdapException When the query result is empty and contains no DN to fetch * @throws LdapException When the query result is empty and contains no DN to fetch
*/ */
public function fetchDn(Query $query, $fields = array()) public function fetchDn(Query $query)
{ {
$rows = $this->fetchAll($query, $fields); $rows = $this->fetchAll($query, array());
if (count($rows) > 1) { if (count($rows) > 1) {
throw new LdapException( throw new LdapException(
'Cannot fetch single DN for %s', 'Cannot fetch single DN for %s',