浏览代码

Minor - fix php warning

Julio 6 年之前
父节点
当前提交
d12e1a3837
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      main/inc/lib/pear/HTML/QuickForm/file.php

+ 2 - 2
main/inc/lib/pear/HTML/QuickForm/file.php

@@ -261,7 +261,7 @@ class HTML_QuickForm_file extends HTML_QuickForm_input
             $ratio = '';
             $ratio = '';
             $scalable = $param['scalable'];
             $scalable = $param['scalable'];
         }
         }
-        
+
         return '<script>
         return '<script>
         $(document).ready(function() {
         $(document).ready(function() {
             var $inputFile = $(\'#'.$id.'\'),
             var $inputFile = $(\'#'.$id.'\'),
@@ -393,7 +393,7 @@ class HTML_QuickForm_file extends HTML_QuickForm_input
                 </div>';
                 </div>';
                 break;
                 break;
             case FormValidator::LAYOUT_HORIZONTAL:
             case FormValidator::LAYOUT_HORIZONTAL:
-                if($attributes['custom']){
+                if (isset($attributes['custom']) && $attributes['custom']) {
                     $template = '
                     $template = '
                         <div class="form-group">
                         <div class="form-group">
                             <div class="col-sm-1"></div>
                             <div class="col-sm-1"></div>