X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fenv.php;h=a40538c80527b5e1eacaec779a25b8fc5836622c;hb=a2446af5ed70964a8b346815798543c672bb1b87;hp=938596c5695a47380257044481040a0af05df472;hpb=1f6a041e92ec09cb668f1e8dc2508347d9b8b229;p=platal.git diff --git a/classes/env.php b/classes/env.php index 938596c..a40538c 100644 --- a/classes/env.php +++ b/classes/env.php @@ -162,7 +162,7 @@ function fix_gpc_magic(&$item, $key) { $item = stripslashes($item); } } -function fix_encoding(&$item, $key) { +function fix_encoding(&$item, $key = null) { if (is_array($item)) { array_walk($item, 'fix_encoding'); } elseif (preg_match('/[\x80-\x9f]/', $item)) {