diff --git a/app/article/controller/Index.php b/app/article/controller/Index.php index 87f932c..d35d7ae 100644 --- a/app/article/controller/Index.php +++ b/app/article/controller/Index.php @@ -238,7 +238,7 @@ class Index extends BaseController public function delete() { $id = get_params("id"); - $admin_id = Db::name('Article')->where('id',$id).value('uid'); + $admin_id = Db::name('Article')->where('id',$id)->value('uid'); if($admin_id!=$this->uid){ return to_assign(1, "你不是该知识的创建人,没权限删除"); }