Remove warning
This commit is contained in:
parent
e3f4dddf02
commit
5077734b00
@ -124,12 +124,12 @@ if (! defined('NOCSRFCHECK') && $_SERVER['REQUEST_METHOD'] != 'GET' && ! empty($
|
|||||||
// This is to make Dolibarr working with Plesk
|
// This is to make Dolibarr working with Plesk
|
||||||
set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
|
set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
|
||||||
|
|
||||||
// Add real path in session
|
// Add real path in session name
|
||||||
$realpath='';
|
$realpath='';
|
||||||
if (preg_match('/\/htdocs\//i',$_SERVER["SCRIPT_FILENAME"]))
|
if (preg_match('/\/htdocs\//i',$_SERVER["SCRIPT_FILENAME"]))
|
||||||
{
|
{
|
||||||
$result = preg_match('/^([^.]+)\/htdocs\//i',$_SERVER["SCRIPT_FILENAME"],$regs);
|
$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.
|
// Init session. Name of session is specific to Dolibarr instance.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user