Browse Source

:bug: 没有判断 $_POST["import"] 是否存在

visuddhinanda 4 years ago
parent
commit
2eeeaa3662
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/article/my_article_post.php

+ 1 - 1
app/article/my_article_post.php

@@ -26,7 +26,7 @@ if($power<20){
 $_content = $_POST["content"];
 
 
-if($_POST["import"]=='on'){
+if(isset($_POST["import"]) && $_POST["import"]=='on'){
 	#导入自定义书
 	$custom_book = new CustomBook($redis);
 	$_lang = explode("_",$_POST["lang"]);