Merge pull request 'fix-mysql-support' (#10) from klatch/tt-rss:fix-mysql-support into master
Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/10
This commit is contained in:
commit
c6fb62f384
|
@ -710,7 +710,7 @@ class Pref_Feeds extends Handler_Protected {
|
|||
$mark_unread_on_update = checkbox_to_sql_bool(
|
||||
clean($_POST["mark_unread_on_update"] ?? ""));
|
||||
|
||||
$feed_language = clean($_POST["feed_language"]);
|
||||
$feed_language = clean($_POST["feed_language"] ?? "");
|
||||
|
||||
if (!$batch) {
|
||||
|
||||
|
|
|
@ -52,8 +52,9 @@ const App = {
|
|||
return this.button_tag(value, "", {...{onclick: "App.dialogOf(this).hide()"}, ...attributes});
|
||||
},
|
||||
checkbox_tag: function(name, checked = false, value = "", attributes = {}, id = "") {
|
||||
// checked !== '0' prevents mysql "boolean" false to be implicitly cast as true
|
||||
return `<input dojoType="dijit.form.CheckBox" type="checkbox" name="${App.escapeHtml(name)}"
|
||||
${checked ? "checked" : ""}
|
||||
${checked !== '0' && checked ? "checked" : ""}
|
||||
${value ? `value="${App.escapeHtml(value)}"` : ""}
|
||||
${this.attributes_to_string(attributes)} id="${App.escapeHtml(id)}">`
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue