From eedb851a50ae3641a61f631aad69d02b600c374b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=EF=BF=BD=EF=BF=BD?= Date: Fri, 28 Nov 2014 21:54:10 +0000 Subject: [PATCH] fix weird case where user root is not found --- bureau/class/m_bro.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bureau/class/m_bro.php b/bureau/class/m_bro.php index 6f4b2561..81c71ffa 100644 --- a/bureau/class/m_bro.php +++ b/bureau/class/m_bro.php @@ -111,6 +111,11 @@ class m_bro { $root_alternc=$root ; // Passage du root en chemin rel (diffrent avec un lien) $root=realpath($root) ; + if (! $root=realpath($root)) { + // Guillaume: it needed to work.. if file doesn't exist it need to crash + // gently + $root=$root_alternc; + } // separer le chemin entre le repertoire et le fichier $file=basename($dir); $dir=dirname($dir);