Skip to content
Snippets Groups Projects
Commit d019f732 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Removed warning

parent e40d8991
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment