Browse Source

Minor - fix php warning

Julio 6 years ago
parent
commit
d12e1a3837
1 changed files with 2 additions and 2 deletions
  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 = '';
             $scalable = $param['scalable'];
         }
-        
+
         return '<script>
         $(document).ready(function() {
             var $inputFile = $(\'#'.$id.'\'),
@@ -393,7 +393,7 @@ class HTML_QuickForm_file extends HTML_QuickForm_input
                 </div>';
                 break;
             case FormValidator::LAYOUT_HORIZONTAL:
-                if($attributes['custom']){
+                if (isset($attributes['custom']) && $attributes['custom']) {
                     $template = '
                         <div class="form-group">
                             <div class="col-sm-1"></div>