From 0d3d71a48fb7225335af1f43e52879723c5d2d25 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 26 Jan 2011 15:29:45 +0000 Subject: [PATCH] Remove warning --- htdocs/main.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index aa0a8168dbd..ec9669e02a8 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -117,7 +117,7 @@ analyse_sql_and_script($_GET,1); analyse_sql_and_script($_POST,0); // This is to make Dolibarr working with Plesk -set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs'); +if (! empty($_SERVER['DOCUMENT_ROOT'])) set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs'); // Include the conf.php and functions.lib.php