Skip to content

Commit 890d0fb

Browse files
committed
cater for possibly empty Unikemet description
1 parent c9a9642 commit 890d0fb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

codepoints.net/views/partials/codepoint-description.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,10 @@
373373
<?php if ($props['unikemet']): ?>
374374
<p>
375375
<?=sprintf(_q('The %sUnikemet database%s provides additional information about this hieroglyph.'), '<a href="https://www.unicode.org/reports/tr57/">', '</a>')?>
376-
<?php if (isset($props['unikemet']['kEH_Desc'])): ?>
376+
<?php if (! empty($props['unikemet']['kEH_Desc'])): ?>
377377
<?=sprintf(_q('It is described there as “%s”.'), sprintf('<em>%s</em>', q($props['unikemet']['kEH_Desc'])))?>
378+
<?php elseif (! empty($props['unikemet']['kEH_Func'])): ?>
379+
<?=sprintf(_q('It’s function in text is described there as “%s”.'), sprintf('<em>%s</em>', q($props['unikemet']['kEH_Func'])))?>
378380
<?php endif ?>
379381
</p>
380382
<?php endif ?>

0 commit comments

Comments
 (0)