Преглед изворни кода

Setting default class for text inputs.

Julio Montoya пре 10 година
родитељ
комит
6b9af13c8c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      main/inc/lib/pear/HTML/QuickForm/text.php

+ 1 - 1
main/inc/lib/pear/HTML/QuickForm/text.php

@@ -50,7 +50,7 @@ class HTML_QuickForm_text extends HTML_QuickForm_input
         $elementLabel = null,
         $attributes = array()
     ) {
-        if (is_array($attributes)) {
+        if (is_array($attributes) || empty($attributes)) {
             $attributes['class'] = 'form-control';
         }