Skip to content
Snippets Groups Projects
Commit 6234bc4f authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

On ignore une notice gênante avec PHP7.4 qui vient du ZF...

parent c18e4331
No related branches found
No related tags found
No related merge requests found
...@@ -116,7 +116,7 @@ abstract class AbstractMapper ...@@ -116,7 +116,7 @@ abstract class AbstractMapper
if (!$attributes) { if (!$attributes) {
$attributes = $this->getAttributes() ?: ['*']; $attributes = $this->getAttributes() ?: ['*'];
} }
$entries = $this->getLdap()->searchEntries($filter, $baseDn, $scope, $attributes, $sort); $entries = @$this->getLdap()->searchEntries($filter, $baseDn, $scope, $attributes, $sort);
if (count($entries) > 1) { if (count($entries) > 1) {
throw new RuntimeException("Plus d'une entrée trouvée avec ce filtre: " . $filter); throw new RuntimeException("Plus d'une entrée trouvée avec ce filtre: " . $filter);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment