Skip to content

Commit 304439f

Browse files
committed
修复课程分类无法删除的BUG
1 parent 2a371f6 commit 304439f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/course/controller/category.master.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private function del()
149149
$page = $this->ev->get('page');
150150
$cat = $this->category->getCategoryById($catid);
151151
$catstring = $this->category->getChildCategoryString($catid, 0);
152-
$contents = $this->course->getCourseList([['AND', 'cscatid = :cscatid', 'cscatid', $catid]]);
152+
$contents = $this->course->getCourseList([['AND', 'cscatid = :cscatid', 'cscatid', $catid]], $page);
153153
if ($catstring || $contents['number']) {
154154
$message = [
155155
'statusCode' => 300,

0 commit comments

Comments
 (0)