From febbd8cace0770930b08c01a4d07a2efbb959fd2 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 27 Mar 2016 18:44:03 -0400 Subject: Check if LDAP logger is defined --- app/Core/Ldap/Client.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'app/Core/Ldap/Client.php') diff --git a/app/Core/Ldap/Client.php b/app/Core/Ldap/Client.php index cee67da5..867d67fe 100644 --- a/app/Core/Ldap/Client.php +++ b/app/Core/Ldap/Client.php @@ -198,4 +198,15 @@ class Client { return $this->logger; } + + /** + * Test if a logger is defined + * + * @access public + * @return boolean + */ + public function hasLogger() + { + return $this->logger !== null; + } } -- cgit v1.2.3