diff --git a/code/model/LDAPGateway.php b/code/model/LDAPGateway.php
index <HASH>..<HASH> 100644
--- a/code/model/LDAPGateway.php
+++ b/code/model/LDAPGateway.php
@@ -21,7 +21,11 @@ class LDAPGateway extends Object
     public function __construct()
     {
         parent::__construct();
-        $this->ldap = new Zend\Ldap\Ldap($this->config()->options);
+        // due to dependency injection this class can be created without any LDAP options set
+        // and \Zend\Ldap\Ldap will throw a warning with an empty array
+        if(count($this->config()->options)) {
+            $this->ldap = new Zend\Ldap\Ldap($this->config()->options);
+        }
     }
 
     /**
FIX Zend LDAP will crash during DI when no LDAP settings are provided