2
0
forked from Wavyzz/dolibarr

Fix: Removed warning

This commit is contained in:
Laurent Destailleur
2012-01-04 13:26:06 +01:00
parent e40d8991b1
commit d019f732b8

View File

@@ -137,7 +137,7 @@ foreach($paths as $tmppath)
{ {
if ($tmppath) $concatpath.='/'.$tmppath; if ($tmppath) $concatpath.='/'.$tmppath;
//print $real_$dolibarr_main_document_root.'-'.realpath($pathroot.$concatpath).'<br>'; //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; $tmp3=$concatpath;
//print "Found relative url = ".$tmp3; //print "Found relative url = ".$tmp3;