From 6a6923b1d8c48bc907b4b6a97412b20d7b08e2ee Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 12 Dec 2018 16:37:27 -0800 Subject: [PATCH] Fixed parse_url() expects parameter 1 to be string, null given --- app/Models/LdapAdConfiguration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }