From d019f732b86bf7c595edf0bedf0a63c4e028c285 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Wed, 4 Jan 2012 13:26:06 +0100 Subject: [PATCH] Fix: Removed warning --- htdocs/filefunc.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/filefunc.inc.php b/htdocs/filefunc.inc.php index 46a0162d6f1..0d288b0ea69 100755 --- a/htdocs/filefunc.inc.php +++ b/htdocs/filefunc.inc.php @@ -137,7 +137,7 @@ foreach($paths as $tmppath) { if ($tmppath) $concatpath.='/'.$tmppath; //print $real_$dolibarr_main_document_root.'-'.realpath($pathroot.$concatpath).'<br>'; - if ($real_dolibarr_main_document_root == realpath($pathroot.$concatpath)) + if ($real_dolibarr_main_document_root == @realpath($pathroot.$concatpath)) // @ avoid warning when safe_mode is on. { $tmp3=$concatpath; //print "Found relative url = ".$tmp3; -- GitLab