check for set vars in get_base_href
This commit is contained in:
parent
ac5f0f611c
commit
53f19120d2
1 changed files with 1 additions and 1 deletions
|
@ -905,7 +905,7 @@ function get_base_href() {
|
|||
$possible_vars = array('SCRIPT_NAME', 'PHP_SELF', 'PATH_INFO', 'ORIG_PATH_INFO');
|
||||
$ok_var = null;
|
||||
foreach($possible_vars as $var) {
|
||||
if(substr($_SERVER[$var], -4) === '.php') {
|
||||
if(isset($_SERVER[$var]) && substr($_SERVER[$var], -4) === '.php') {
|
||||
$ok_var = $_SERVER[$var];
|
||||
break;
|
||||
}
|
||||
|
|
Reference in a new issue