Fix: Removed warning

This commit is contained in:
Laurent Destailleur 2012-01-04 13:26:41 +01:00
parent db12c049f8
commit 51829302ab

View File

@ -138,7 +138,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))
{
$tmp3=$concatpath;
//print "Found relative url = ".$tmp3;