diff options
author | msquare <msquare@notrademark.de> | 2018-08-06 13:10:53 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2018-08-06 13:10:53 +0200 |
commit | 2832fe48eeff7335e734ac17b1b7d9f3c52621a8 (patch) | |
tree | 6cf65382789df3aa55ef8c451c1ab6dd0321d963 /includes/sys_form.php | |
parent | 9496e3571168feff780f6efb17ddc00c670e2dee (diff) |
rename some params (codestyle)
Diffstat (limited to 'includes/sys_form.php')
-rw-r--r-- | includes/sys_form.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/sys_form.php b/includes/sys_form.php index 05df4c15..b29dd364 100644 --- a/includes/sys_form.php +++ b/includes/sys_form.php @@ -154,17 +154,17 @@ function form_multi_checkboxes($names, $label, $items, $selected, $disabled = [] * @param string $label * @param string $selected * @param string $value - * @param string $id + * @param string $html_id * @return string */ -function form_checkbox($name, $label, $selected, $value = 'checked', $id = null) +function form_checkbox($name, $label, $selected, $value = 'checked', $html_id = null) { - if (is_null($id)) { - $id = $name; + if (is_null($html_id)) { + $html_id = $name; } return '<div class="checkbox"><label>' - . '<input type="checkbox" id="' . $id . '" name="' . $name . '" value="' . htmlspecialchars($value) . '" ' + . '<input type="checkbox" id="' . $html_id . '" name="' . $name . '" value="' . htmlspecialchars($value) . '" ' . ($selected ? ' checked="checked"' : '') . ' /> ' . $label . '</label></div>'; |