File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
application/qmodem/files/usr/share/qmodem Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ add_plain_info_entry()
1111 if [ -n " $class_overwrite " ]; then
1212 class=" $class_overwrite "
1313 fi
14+ if [ -z " $value " ]; then
15+ return
16+ fi
1417 json_add_object " "
1518 json_add_string key " $key "
1619 json_add_string value " $value "
@@ -32,6 +35,9 @@ add_warning_message_entry()
3235 if [ -n " $class_overwrite " ]; then
3336 class=" $class_overwrite "
3437 fi
38+ if [ -z " $value " ]; then
39+ return
40+ fi
3541 json_add_object " "
3642 json_add_string key " $key "
3743 json_add_string value " $value "
@@ -54,6 +60,9 @@ add_bar_info_entry()
5460 if [ -n " $class_overwrite " ]; then
5561 class=" $class_overwrite "
5662 fi
63+ if [ -z " $value " ]; then
64+ return
65+ fi
5766 json_add_object " "
5867 json_add_string key " $key "
5968 json_add_string value " $value "
@@ -95,6 +104,9 @@ add_avalible_band_entry()
95104{
96105 band_id=$1
97106 band_name=$2
107+ if [ -z " $band_id " ] || [ -z " $band_name " ]; then
108+ return
109+ fi
98110 json_add_object " "
99111 json_add_string band_id " $band_id "
100112 json_add_string band_name " $band_name "
You can’t perform that action at this time.
0 commit comments