From f0a201c5703333fa2b120cda8e145fb405283908 Mon Sep 17 00:00:00 2001 From: Chris Smith <chris.eureka@jalakai.co.uk> Date: Thu, 22 Jan 2009 09:16:49 +0100 Subject: [PATCH] add error suppression to iswin check to avoid notices when DOKU_UNITTEST_ASSUME_WINDOWS isn't set darcs-hash:20090122081649-f07c6-e7744b1496e1a05ab089812fd7ca3716ecec2290.gz --- inc/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/init.php b/inc/init.php index 46576e000..3df769ce8 100644 --- a/inc/init.php +++ b/inc/init.php @@ -510,7 +510,7 @@ EOT; function fullpath($path,$exists=false){ static $run = 0; $root = ''; - $iswin = (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' || $GLOBALS['DOKU_UNITTEST_ASSUME_WINDOWS']); + $iswin = (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' || @$GLOBALS['DOKU_UNITTEST_ASSUME_WINDOWS']); // find the (indestructable) root of the path - keeps windows stuff intact if($path{0} == '/'){ -- GitLab