summaryrefslogtreecommitdiff
path: root/include/controls.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-16 15:05:32 +0300
committerAndrew Dolgov <[email protected]>2021-02-16 15:05:32 +0300
commitaf4b3e7df06e50e956e9fda281935a7483f5673a (patch)
tree77fc2ba8a4ecdeb40b8c57e1ec12d0550379439f /include/controls.php
parent22fc6871e8eca507578381bda6d6683d2082810b (diff)
login form: use control helpers
Diffstat (limited to 'include/controls.php')
-rwxr-xr-xinclude/controls.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/controls.php b/include/controls.php
index 78f02233f..b351a9449 100755
--- a/include/controls.php
+++ b/include/controls.php
@@ -64,12 +64,12 @@
name=\"".htmlspecialchars($name)."\" value=\"".htmlspecialchars($value)."\">";
}
- function checkbox_tag(string $name, bool $checked, string $value = "", string $attributes = "", string $id = "") {
+ function checkbox_tag(string $name, bool $checked = false, string $value = "", string $attributes = "", string $id = "") {
$is_checked = $checked ? "checked" : "";
$value_str = $value ? "value=\"".htmlspecialchars($value)."\"" : "";
return "<input dojoType='dijit.form.CheckBox' name=\"".htmlspecialchars($name)."\"
- $value_str $is_checked $attributes name=\"".htmlspecialchars($id)."\">";
+ $value_str $is_checked $attributes id=\"".htmlspecialchars($id)."\">";
}
function select_feeds_cats(string $name, int $default_id = null, string $attributes = "",