add error suppression to iswin check to avoid notices when DOKU_UNITTEST_ASSUME_WINDOWS isn't set

darcs-hash:20090122081649-f07c6-e7744b1496e1a05ab089812fd7ca3716ecec2290.gz
This commit is contained in:
Chris Smith 2009-01-22 09:16:49 +01:00
parent e6266454ce
commit f0a201c570
1 changed files with 1 additions and 1 deletions

View File

@ -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} == '/'){