Make WordPress Core

Changeset 3408 for trunk/wp-settings.php


Ignore:
Timestamp:
01/06/2006 01:05:59 AM (19 years ago)
Author:
ryan
Message:

Check if SCRIPT_FILENAME is set to avoid warnings. fixes #2227

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r3382 r3408  
    3636
    3737// Fix for PHP as CGI hosts that set SCRIPT_FILENAME to something ending in php.cgi for all requests
    38 if ( strpos($_SERVER['SCRIPT_FILENAME'], 'php.cgi') == strlen($_SERVER['SCRIPT_FILENAME']) - 7 )
     38if ( isset($_SERVER['SCRIPT_FILENAME']) && ( strpos($_SERVER['SCRIPT_FILENAME'], 'php.cgi') == strlen($_SERVER['SCRIPT_FILENAME']) - 7 ) )
    3939    $_SERVER['SCRIPT_FILENAME'] = $_SERVER['PATH_TRANSLATED'];
    4040
Note: See TracChangeset for help on using the changeset viewer.