Browse Source

erreur de syntaxe (merci marcimat)

Fil 3 months ago
parent
commit
06b742e7e3
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      config/ecran_securite.php

+ 4
- 4
config/ecran_securite.php View File

@@ -34,7 +34,7 @@ if (!defined('_IS_BOT')){
34 34
 	define('_IS_BOT',
35 35
 		isset($_SERVER['HTTP_USER_AGENT'])
36 36
 		and preg_match(','
37
-		. array(
37
+		. implode ('|', array(
38 38
 			// mots generiques
39 39
 			'bot',
40 40
 			'slurp',
@@ -175,17 +175,17 @@ if (!defined('_IS_BOT')){
175 175
 			'yats',
176 176
 			'yeti',
177 177
 			'zeerch'
178
-		).join('|') . ',i',
178
+		)) . ',i',
179 179
 		(string)$_SERVER['HTTP_USER_AGENT'])
180 180
 	);
181 181
 }
182 182
 if (!defined('_IS_BOT_FRIEND')){
183 183
 	define('_IS_BOT_FRIEND',
184 184
 		isset($_SERVER['HTTP_USER_AGENT'])
185
-		and preg_match(',' . array(
185
+		and preg_match(',' . implode ('|', array(
186 186
 			'facebookexternalhit',
187 187
 			'flipboardproxy'
188
-		).join('|') . ',i',
188
+		)) . ',i',
189 189
 		(string)$_SERVER['HTTP_USER_AGENT'])
190 190
 	);
191 191
 }

Loading…
Cancel
Save