소스 검색

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