Skip to content

Commit

Permalink
cater for possibly empty Unikemet description
Browse files Browse the repository at this point in the history
  • Loading branch information
Boldewyn committed Dec 13, 2024
1 parent c9a9642 commit 890d0fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion codepoints.net/views/partials/codepoint-description.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,10 @@
<?php if ($props['unikemet']): ?>
<p>
<?=sprintf(_q('The %sUnikemet database%s provides additional information about this hieroglyph.'), '<a href="https://www.unicode.org/reports/tr57/">', '</a>')?>
<?php if (isset($props['unikemet']['kEH_Desc'])): ?>
<?php if (! empty($props['unikemet']['kEH_Desc'])): ?>
<?=sprintf(_q('It is described there as “%s”.'), sprintf('<em>%s</em>', q($props['unikemet']['kEH_Desc'])))?>
<?php elseif (! empty($props['unikemet']['kEH_Func'])): ?>
<?=sprintf(_q('It’s function in text is described there as “%s”.'), sprintf('<em>%s</em>', q($props['unikemet']['kEH_Func'])))?>
<?php endif ?>
</p>
<?php endif ?>

0 comments on commit 890d0fb

Please sign in to comment.