diff --git a/main.php b/main.php index a493e4551..860d374e7 100644 --- a/main.php +++ b/main.php @@ -65,6 +65,15 @@ if (function_exists('mb_http_output')) { mb_internal_encoding('UTF-8'); } +/* + * This is for versions of PHP prior to version 5.2 + */ +if (!function_exists('array_fill_keys')) { + function array_fill_keys($keys,$value) { + return array_combine($keys,array_fill(0,count($keys),$value)); + } +} + Session::start(); // IIS will sometimes generate this.