git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13004
7612ce4b-ef26-0410-bec9-
ea0150e637f0
* constructed as a checkbox,
* otherwise it will be a set of
* Yes/No radio buttons (OPTIONAL;
- * default is FALSE (radio buttons)).
+ * default is TRUE (checkbox)).
*
* @return string html formated boolean widget
*
*/
- function createWidget_Boolean($checkbox=FALSE) {
+ function createWidget_Boolean($checkbox=TRUE) {
global $oTemplate, $nbsp;
echo "<tr>\n" .
" <td class=\"optionName\">\n ";
-//FIXME: use the following two lines instead if we make the default boolean type checkbox
- //if ($opt->type == SMOPT_TYPE_BOOLEAN_CHECKBOX
- // || $opt->type == SMOPT_TYPE_BOOLEAN) {
- if ($opt->type == SMOPT_TYPE_BOOLEAN_CHECKBOX) {
+ if ($opt->type == SMOPT_TYPE_BOOLEAN_CHECKBOX
+ || $opt->type == SMOPT_TYPE_BOOLEAN) {
echo '<label for="new_' . $opt->name . '">'
. $opt->caption . '</label>';
} else {