Skip to content
Snippets Groups Projects
Commit 81399c57 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Légère modif pour testabilité.

parent 459ff926
No related branches found
No related tags found
No related merge requests found
......@@ -46,14 +46,11 @@ 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;
}
/**
* Returns the contents of storage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment