diff options
Diffstat (limited to 'phpBB/includes/functions.php')
| -rw-r--r-- | phpBB/includes/functions.php | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 98a1dab722..b2b12c1445 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1005,7 +1005,7 @@ if (!function_exists('stripos'))  */  function is_absolute($path)  { -	return ($path[0] == '/' || (DIRECTORY_SEPARATOR == '\\' && preg_match('#^[a-z]:[/\\\]#i', $path))) ? true : false; +	return (isset($path[0]) && $path[0] == '/' || preg_match('#^[a-z]:[/\\\]#i', $path)) ? true : false;  }  /** @@ -2740,7 +2740,7 @@ function meta_refresh($time, $url, $disable_cd_check = false)  	// For XHTML compatibility we change back & to &  	$template->assign_vars(array( -		'META' => '<meta http-equiv="refresh" content="' . $time . ';url=' . $url . '" />') +		'META' => '<meta http-equiv="refresh" content="' . $time . '; url=' . $url . '" />')  	);  	return $url;  | 
