correctly avoid notice in init.

This commit is contained in:
Andreas Gohr 2018-06-02 09:19:30 +02:00
parent 2cceef48e0
commit 724970e65d
1 changed files with 1 additions and 1 deletions

View File

@ -551,7 +551,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' || !empty($GLOBALS['DOKU_UNITTEST_ASSUME_WINDOWS']));
// find the (indestructable) root of the path - keeps windows stuff intact
if($path{0} == '/'){