summaryrefslogtreecommitdiff
path: root/inc/init.php
diff options
context:
space:
mode:
authorChris Smith <chris.eureka@jalakai.co.uk>2009-01-22 09:16:49 +0100
committerChris Smith <chris.eureka@jalakai.co.uk>2009-01-22 09:16:49 +0100
commitf0a201c5703333fa2b120cda8e145fb405283908 (patch)
tree153e28538e870fbc6afdfbc5692eddebbea545ee /inc/init.php
parente6266454ce9de722c81e320726bffcdc2fecfa28 (diff)
downloadrpg-f0a201c5703333fa2b120cda8e145fb405283908.tar.gz
rpg-f0a201c5703333fa2b120cda8e145fb405283908.tar.bz2
add error suppression to iswin check to avoid notices when DOKU_UNITTEST_ASSUME_WINDOWS isn't set
darcs-hash:20090122081649-f07c6-e7744b1496e1a05ab089812fd7ca3716ecec2290.gz
Diffstat (limited to 'inc/init.php')
-rw-r--r--inc/init.php2
1 files changed, 1 insertions, 1 deletions
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} == '/'){