]> git.mjollnir.org Git - s9y.git/commitdiff
* ensure php 5.2 compatibility
authornohn <nohn>
Fri, 3 Nov 2006 16:09:21 +0000 (16:09 +0000)
committernohn <nohn>
Fri, 3 Nov 2006 16:09:21 +0000 (16:09 +0000)
include/compat.inc.php

index 4e0ec77113fc765617918b9c80718aa41a94112d..5b95d91d1f57b11924dacca9668f49dba9601e49 100644 (file)
@@ -96,7 +96,7 @@ if (!isset($_SERVER)) {
     $_SERVER = &$HTTP_SERVER_VARS;
 }
 
-if (extension_loaded('filter') && input_name_to_filter(ini_get('filter.default')) !== FILTER_UNSAFE_RAW) {
+if (extension_loaded('filter') && function_exists('input_name_to_filter') && input_name_to_filter(ini_get('filter.default')) !== FILTER_UNSAFE_RAW) {
     foreach ($_POST as $key => $value) {
         $_POST[$key] = input_get(INPUT_POST, $key, FILTER_UNSAFE_RAW);
     }