LdapConnection: Ignore unknown vendor upon inspection
This commit is contained in:
parent
7bb9c8e25f
commit
098bcfb98f
|
@ -1533,7 +1533,10 @@ class LdapConnection implements Selectable, Inspectable
|
|||
try {
|
||||
$cap = LdapCapabilities::discoverCapabilities($this);
|
||||
$discovery = new Inspection('Discovery Results');
|
||||
$discovery->write($cap->getVendor());
|
||||
$vendor = $cap->getVendor();
|
||||
if (isset($vendor)) {
|
||||
$discovery->write($vendor);
|
||||
}
|
||||
$version = $cap->getVersion();
|
||||
if (isset($version)) {
|
||||
$discovery->write($version);
|
||||
|
|
Loading…
Reference in New Issue