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 @@ -518,11 +518,13 @@ protected static function WriteKeyboardDetails() {
518
518
echo " <a id='expand-languages' href='#expand-languages'>Expand $ count more >></a> " ;
519
519
echo "<a id='collapse-languages' href='#collapse-languages'><< Collapse</a> <span class='expand-languages'> " ;
520
520
}
521
- echo
522
- "<a href='/keyboards?q=l:id: " .htmlspecialchars (rawurlencode ($ bcp47 )).
523
- "' title=' " .htmlspecialchars ($ bcp47 ).": " .htmlspecialchars ($ detail ->displayName )."'> " .
524
- (!strcasecmp ($ bcp47 , self ::$ bcp47 ) ? "<mark> " .htmlspecialchars ($ detail ->languageName )."</mark> " : htmlspecialchars ($ detail ->languageName )).
525
- "</a> " ;
521
+ if (array_key_exists ('languageName ' , $ detail )) {
522
+ echo
523
+ "<a href='/keyboards?q=l:id: " .htmlspecialchars (rawurlencode ($ bcp47 )).
524
+ "' title=' " .htmlspecialchars ($ bcp47 ).": " .htmlspecialchars ($ detail ->displayName )."'> " .
525
+ (!strcasecmp ($ bcp47 , self ::$ bcp47 ) ? "<mark> " .htmlspecialchars ($ detail ->languageName )."</mark> " : htmlspecialchars ($ detail ->languageName )).
526
+ "</a> " ;
527
+ }
526
528
$ n ++;
527
529
}
528
530
if ($ n >= 3 ) {
You can’t perform that action at this time.
0 commit comments