LdapConnection: Ignore unknown vendor upon inspection

This commit is contained in:
Johannes Meyer 2020-01-13 13:46:32 +01:00
parent 7bb9c8e25f
commit 098bcfb98f
1 changed files with 4 additions and 1 deletions

View File

@ -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);