Skip to content

Commit

Permalink
# 修复 当前文件夹下无 README.html 文件时,PHP会提示警告的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Toyo committed Mar 26, 2018
1 parent 341a73b commit 0fe61d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/themes/bootstrap/index.php
Expand Up @@ -11,7 +11,9 @@
$md_file = ".".$md_path[1]."README.html";
}
}
$md_text = file_get_contents($md_file);
if(file_exists($md_file)){
$md_text = file_get_contents($md_file);
}
?>
<html>
<head>
Expand Down

0 comments on commit 0fe61d0

Please sign in to comment.