From 9019babb19d9824c356a19341abbb58e7682c9f0 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Fri, 11 Nov 2005 02:22:19 +0000 Subject: [PATCH] PHP notice fix git-svn-id: https://develop.svn.wordpress.org/trunk@3051 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-settings.php b/wp-settings.php index 48d78f1159..0e00ff7a3f 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -39,7 +39,7 @@ if ( strpos($_SERVER['SCRIPT_FILENAME'], 'php.cgi') == strlen($_SERVER['SCRIPT_F $_SERVER['SCRIPT_FILENAME'] = $_SERVER['PATH_TRANSLATED']; // 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']); if ( !(phpversion() >= '4.1') )