From 5077734b00ce7e9cfb57e3cd26375c29e9ae92cc Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 17 Mar 2010 21:50:31 +0000 Subject: [PATCH] Remove warning --- htdocs/main.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 96ea3d66a4e..971b1abae2c 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -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.