Ldap\Connection: Connect automatically in case capabilities are not set yet
This commit is contained in:
parent
d097f7fe8f
commit
7127d5eb39
|
@ -617,6 +617,10 @@ class Connection implements Selectable
|
|||
*/
|
||||
public function getCapabilities()
|
||||
{
|
||||
if ($this->capabilities === null) {
|
||||
$this->connect(); // Populates $this->capabilities
|
||||
}
|
||||
|
||||
return $this->capabilities;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue