解决万网主机报错open_basedir restriction in effect

如果文件夹内有.gitignore的话左边栏必报错
pull/25/head
zsx 2015-08-25 20:02:29 +08:00
parent 1ac48df95a
commit 5a28ef3fb5
1 changed files with 2 additions and 1 deletions

View File

@ -292,7 +292,8 @@ function path_haschildren($dir,$check_file=false){
if ($check_file) {//有子目录或者文件都说明有子内容
if(is_dir($fullpath.'/') || is_file($fullpath)) return true;
}else{//只检查有没有文件
if(is_dir($fullpath.'/')) return true;
@$ret =(is_dir($fullpath.'/'));
return (bool)$ret;
}
}
}