diff --git a/src/UnicaenAuth/Authentication/Storage/LdapDb.php b/src/UnicaenAuth/Authentication/Storage/LdapDb.php index 78660e43aefac8ee4b43bc98a65fb9cb0af0f2ad..4afd4f70a0ed76a579359ba04240950781d40f58 100644 --- a/src/UnicaenAuth/Authentication/Storage/LdapDb.php +++ b/src/UnicaenAuth/Authentication/Storage/LdapDb.php @@ -46,13 +46,10 @@ class LdapDb implements Storage\StorageInterface, ServiceManagerAwareInterface */ public function isEmpty() { - if (!$this->getLdapStorage()->isEmpty()) { - return false; + if ($this->getLdapStorage()->isEmpty() && $this->getDbStorage()->isEmpty()) { + return true; } - if (!$this->getDbStorage()->isEmpty()) { - return false; - } - return true; + return false; } /**