ソースを参照

#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))