Skip to content

Commit

Permalink
correctly avoid notice in init.
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Jun 2, 2018
1 parent 2cceef4 commit 724970e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/init.php
Expand Up @@ -551,7 +551,7 @@ function nice_die($msg){
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} == '/'){
Expand Down

0 comments on commit 724970e

Please sign in to comment.