From 5a28ef3fb5b06557fd2b9c0de206463682fabb06 Mon Sep 17 00:00:00 2001 From: zsx Date: Tue, 25 Aug 2015 20:02:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=B8=87=E7=BD=91=E4=B8=BB?= =?UTF-8?q?=E6=9C=BA=E6=8A=A5=E9=94=99open=5Fbasedir=20restriction=20in=20?= =?UTF-8?q?effect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 如果文件夹内有.gitignore的话左边栏必报错 --- lib/function/file.function.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/function/file.function.php b/lib/function/file.function.php index de17413..af6f2a0 100755 --- a/lib/function/file.function.php +++ b/lib/function/file.function.php @@ -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; } } }