File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -599,11 +599,13 @@ protected static function WriteKeyboardDetails() {
599
599
echo " <a id='expand-languages' href='#expand-languages'>Expand $ count more >></a> " ;
600
600
echo "<a id='collapse-languages' href='#collapse-languages'><< Collapse</a> <span class='expand-languages'> " ;
601
601
}
602
- echo
603
- "<a href='/keyboards?q=l:id: " .htmlspecialchars (rawurlencode ($ bcp47 )).
604
- "' title=' " .htmlspecialchars ($ bcp47 ).": " .htmlspecialchars ($ detail ->displayName )."'> " .
605
- (!strcasecmp ($ bcp47 , self ::$ bcp47 ) ? "<mark> " .htmlspecialchars ($ detail ->languageName )."</mark> " : htmlspecialchars ($ detail ->languageName )).
606
- "</a> " ;
602
+ if (array_key_exists ('languageName ' , $ detail )) {
603
+ echo
604
+ "<a href='/keyboards?q=l:id: " .htmlspecialchars (rawurlencode ($ bcp47 )).
605
+ "' title=' " .htmlspecialchars ($ bcp47 ).": " .htmlspecialchars ($ detail ->displayName )."'> " .
606
+ (!strcasecmp ($ bcp47 , self ::$ bcp47 ) ? "<mark> " .htmlspecialchars ($ detail ->languageName )."</mark> " : htmlspecialchars ($ detail ->languageName )).
607
+ "</a> " ;
608
+ }
607
609
$ n ++;
608
610
}
609
611
if ($ n >= 3 ) {
You can’t perform that action at this time.
0 commit comments