Minor - By default the class is form-horizontal in formvalidator

skala
Julio Montoya 13 years ago
parent 4691ecee3b
commit e77f10df04
  1. 2
      main/inc/lib/formvalidator/FormValidator.class.php

@ -33,7 +33,7 @@ class FormValidator extends HTML_QuickForm {
function __construct($form_name, $method = 'post', $action = '', $target = '', $attributes = null, $track_submit = true) { function __construct($form_name, $method = 'post', $action = '', $target = '', $attributes = null, $track_submit = true) {
//Default form class //Default form class
if (!isset($attributes['class'])) { if (is_array($attributes) && !isset($attributes['class']) || empty($attributes)) {
$attributes['class'] = 'form-horizontal'; $attributes['class'] = 'form-horizontal';
} }

Loading…
Cancel
Save