Skip to content
Snippets Groups Projects
Commit 4632a33b authored by Ghislain Loas's avatar Ghislain Loas
Browse files

fix php compat

parent 5ebf4cbb
Branches
Tags 7.2.10
No related merge requests found
......@@ -36,7 +36,8 @@ trait Trait_HasManyDomaines {
public function getDomaines() {
return empty($domains = $this->getDomaineIdsAsArray())
$domains = $this->getDomaineIdsAsArray();
return empty($domains)
? []
: Class_Catalogue::findAllBy(['id_catalogue' => $domains]);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment