ExtensibleSet: do not render empty arrays

This commit is contained in:
Thomas Gelf 2016-02-29 18:29:58 +01:00
parent 62c1aec917
commit dcd2823a73
1 changed files with 4 additions and 0 deletions

View File

@ -120,6 +120,10 @@ class ExtensibleSet
}
foreach ($byBehaviour as $method => &$values) {
if (empty($values)) {
continue;
}
sort($values);
$this->$method($values);
}