Skip to content

Commit

Permalink
Prevent render of empty dl if no resource values.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimisgold committed Aug 12, 2024
1 parent 944984c commit e2dcd99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/view/common/resource-values.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $filterLocaleCallback = function ($value) use ($lang) {
return $valueLang == '' || strcasecmp($valueLang, $lang) === 0;
};
?>

<?php if (count($values) > 0): ?>
<dl>
<?php
foreach ($values as $term => $propertyData):
Expand Down Expand Up @@ -76,3 +76,4 @@ foreach ($values as $term => $propertyData):
</div>
<?php endforeach; ?>
</dl>
<?php endif; ?>

0 comments on commit e2dcd99

Please sign in to comment.