Commit a2e3abbe authored by jan.koester's avatar jan.koester
Browse files

bugfix

parent 63c5d638
Loading
Loading
Loading
Loading
+5 −0
Changes for src/blogi.cpp: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -790,6 +790,11 @@ static void renderSettingsJson(json_object *jroot, libhtmlpp::HtmlString &out, c
                        << "}"
                        << "new BlogiCP('" << uid << "');"
                        << "</script>";
                }else if(strcmp(type,"checkbox")==0){
                    out << "<input class=\"set-input\" type=\"checkbox\" name=\"" << name << "\" value=\"on\"";
                    if(value && (strcmp(value,"on")==0 || strcmp(value,"true")==0 || strcmp(value,"1")==0))
                        out << " checked";
                    out << " />";
                }else{
                    out << "<input class=\"set-input\" type=\"" << type << "\" name=\"" << name << "\" value=\"" << value << "\" />";
                }