From 62bcb6b27757a7d763fd69911ff7caf129d214ce Mon Sep 17 00:00:00 2001 From: Jeroen van Meeuwen <kanarip@kanarip.ch> Date: Mon, 23 Sep 2019 13:58:04 +0200 Subject: [PATCH] Prevent unset $props['sort'] --- lib/Net/LDAP3.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Net/LDAP3.php b/lib/Net/LDAP3.php index ca3081d..89851c2 100644 --- a/lib/Net/LDAP3.php +++ b/lib/Net/LDAP3.php @@ -1610,6 +1610,10 @@ class Net_LDAP3 { $controls = null; + if (!array_key_exists('sort', $props)) { + $props['sort'] = false; + } + if (!$this->conn) { $this->_debug("No active connection for " . __CLASS__ . "::" . __FUNCTION__); return false; -- GitLab