Переглянути джерело

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';
         }