Skip to content

Commit

Permalink
Fixes some bugs introduced with update 9959fe6.
Browse files Browse the repository at this point in the history
  • Loading branch information
JB Lebrun committed Oct 1, 2018
1 parent 8571e1f commit 40c50f1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions engine/lib/object/HTMLForm.php.inc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* @details Engine / Object Library * @details Engine / Object Library
* @file engine/lib/object/HTMLForm.php.inc * @file engine/lib/object/HTMLForm.php.inc
* @author CaMykS Team <camyks.contact@gmail.com> * @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.1 * @version 1.1.1
* @date Creation: Jun 2005 * @date Creation: Jun 2005
* @date Modification: Sep 2018 * @date Modification: Oct 2018
* @copyright 2005 - 2018 CaMykS Team * @copyright 2005 - 2018 CaMykS Team
* @note This program is distributed as is - WITHOUT ANY WARRANTY; * @note This program is distributed as is - WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Expand Down Expand Up @@ -1318,7 +1318,7 @@ class HTMLForm {
*/ */
public function display_checkboxInput($input, $default=null) { public function display_checkboxInput($input, $default=null) {
/* build param list */ /* build param list */
$params = array('size'=>0, 'value'=>'', 'label'=>'', 'labelClass'=>'', 'labelStyle'=>'', 'multiValues'=>false); $params = array('class'=>'', 'size'=>0, 'value'=>'', 'label'=>'', 'labelClass'=>'', 'labelStyle'=>'', 'multiValues'=>false);


/* check header params */ /* check header params */
if (is_array($input)) { if (is_array($input)) {
Expand Down Expand Up @@ -1355,6 +1355,7 @@ class HTMLForm {
$html .= ' name="'.$params['name'].'_'.$params['language']; $html .= ' name="'.$params['name'].'_'.$params['language'];
if ($params['multiValues']===true) if ($params['multiValues']===true)
$html .= '[]'; $html .= '[]';
$html .= '"';
$html .= ' value="'.$params['value'].'"'; $html .= ' value="'.$params['value'].'"';


/* avoid name to be rewritten in generic attributes */ /* avoid name to be rewritten in generic attributes */
Expand Down Expand Up @@ -1389,7 +1390,7 @@ class HTMLForm {
*/ */
public function display_radioInput($input, $default=null) { public function display_radioInput($input, $default=null) {
/* build param list */ /* build param list */
$params = array('value'=>'', 'label'=>'', 'labelClass'=>'', 'labelStyle'=>''); $params = array('class'=>'', 'value'=>'', 'label'=>'', 'labelClass'=>'', 'labelStyle'=>'');


/* check header params */ /* check header params */
if (is_array($input)) { if (is_array($input)) {
Expand Down

0 comments on commit 40c50f1

Please sign in to comment.