Skip to content

A free open source IT asset/license management system

Fixed parse_url() expects parameter 1 to be string, null given

snipe6a6923b1d8c4
diff --git a/app/Models/LdapAdConfiguration.php b/app/Models/LdapAdConfiguration.php
index eed0357fc2..ffb4c2f44e 100644
--- a/app/Models/LdapAdConfiguration.php
+++ b/app/Models/LdapAdConfiguration.php
@@ -92,7 +92,7 @@ class LdapAdConfiguration
}
}
- if ('ldap_server' === $key) {
+ if (($item) && ('ldap_server' === $key)) {
return collect(parse_url($item));
}