소스 검색

#2028 Antispam: profanity filter

Alex Trofimov 7 년 전
부모
커밋
daffe2ae2c
1개의 변경된 파일과 3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      inc/classes/BxDolForm.php

+ 3 - 0
inc/classes/BxDolForm.php

@@ -1270,6 +1270,9 @@ class BxDolFormChecker
 
             foreach ($aInputs as $k => $a) {
 
+                if (!isset($a['name']))
+                    continue;
+
                 $a['name'] = str_replace('[]', '', $a['name']);
 
                 if ($a['type'] != 'textarea' && $a['type'] != 'text' && !in_array($a['name'], $this->_aFieldsCheckForSpam))