Skip to content

Commit

Permalink
修复课程分类无法删除的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
oiuv committed Dec 27, 2019
1 parent 2a371f6 commit 304439f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/course/controller/category.master.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private function del()
$page = $this->ev->get('page');
$cat = $this->category->getCategoryById($catid);
$catstring = $this->category->getChildCategoryString($catid, 0);
$contents = $this->course->getCourseList([['AND', 'cscatid = :cscatid', 'cscatid', $catid]]);
$contents = $this->course->getCourseList([['AND', 'cscatid = :cscatid', 'cscatid', $catid]], $page);
if ($catstring || $contents['number']) {
$message = [
'statusCode' => 300,
Expand Down

0 comments on commit 304439f

Please sign in to comment.