Remove warning

This commit is contained in:
Laurent Destailleur 2010-03-17 21:50:31 +00:00
parent e3f4dddf02
commit 5077734b00

View File

@ -124,12 +124,12 @@ if (! defined('NOCSRFCHECK') && $_SERVER['REQUEST_METHOD'] != 'GET' && ! empty($
// This is to make Dolibarr working with Plesk
set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
// Add real path in session
// Add real path in session name
$realpath='';
if (preg_match('/\/htdocs\//i',$_SERVER["SCRIPT_FILENAME"]))
{
$result = preg_match('/^([^.]+)\/htdocs\//i',$_SERVER["SCRIPT_FILENAME"],$regs);
$realpath = $regs[1];
$realpath = isset($regs[1])?$regs[1]:'';
}
// Init session. Name of session is specific to Dolibarr instance.