PHP notice fix
git-svn-id: http://svn.automattic.com/wordpress/trunk@3051 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
005605d6b9
commit
815bd99a96
|
@ -39,7 +39,7 @@ if ( strpos($_SERVER['SCRIPT_FILENAME'], 'php.cgi') == strlen($_SERVER['SCRIPT_F
|
||||||
$_SERVER['SCRIPT_FILENAME'] = $_SERVER['PATH_TRANSLATED'];
|
$_SERVER['SCRIPT_FILENAME'] = $_SERVER['PATH_TRANSLATED'];
|
||||||
|
|
||||||
// Fix for PHP as CGI hosts that set PATH_INFO to PHP_SELF value
|
// Fix for PHP as CGI hosts that set PATH_INFO to PHP_SELF value
|
||||||
if ( $_SERVER['PATH_INFO'] == $_SERVER['PHP_SELF'] )
|
if ( isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] == $_SERVER['PHP_SELF'] )
|
||||||
unset($_SERVER['PATH_INFO']);
|
unset($_SERVER['PATH_INFO']);
|
||||||
|
|
||||||
if ( !(phpversion() >= '4.1') )
|
if ( !(phpversion() >= '4.1') )
|
||||||
|
|
Loading…
Reference in New Issue