summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 4e318a770..ccaf53123 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -322,6 +322,7 @@ function common_input($id, $label, $value=NULL,$instructions=NULL) {
function common_checkbox($id, $label, $instructions=NULL, $value='true')
{
common_element_start('p');
+ common_element('label', array('for' => $id), $label);
$attrs = array('name' => $id,
'type' => 'checkbox',
'id' => $id,
@@ -330,7 +331,6 @@ function common_checkbox($id, $label, $instructions=NULL, $value='true')
$attrs['value'] = htmlspecialchars($value);
}
common_element('input', $attrs);
- common_element('label', array('for' => $id), $label);
if ($instructions) {
common_element('span', 'input_instructions', $instructions);
}