]> git.plutz.net Git - shcgi/commitdiff
bugfix, default to input for missing translations
authorpaul <paul@plutz.net>
Wed, 6 Apr 2016 18:38:44 +0000 (18:38 +0000)
committerpaul <paul@plutz.net>
Wed, 6 Apr 2016 18:38:44 +0000 (18:38 +0000)
svn path=/trunk/; revision=22

misc.sh

diff --git a/misc.sh b/misc.sh
index adc879b3091474e24cbb765a001d211717c1b6d8..54c3dc67f68c83ed21ab45907bf295f6d0a4f2eb 100755 (executable)
--- a/misc.sh
+++ b/misc.sh
@@ -53,5 +53,5 @@ invalidate(){
 
 declare -A item_name
 l10n(){
-  [ -n "$item_name[$1]+x" ] && printf %s "$item_name[$1]" || printf %s "$1"
+  [ -n "${item_name[$1]+x}" ] && printf %s "$item_name[$1]" || printf %s "$1"
 }