← All changes
|
inc/rest-api/v1/admin/class-lp-admin-rest-reset-data-controller.php
+1
-1
4.1.7.3
→
4.4.9
View file →
| @@ -93,9 +93,9 @@ | ||
| 93 | 93 | |
| 94 | 94 | if ( $rows ) { |
| 95 | 95 | foreach ( $rows as $k => $row ) { |
| 96 | 96 | $course = learn_press_get_course( $row->id ); |
| 97 | - $row->students = $course->get_total_user_enrolled(); | |
| 97 | + $row->students = $course->get_total_user_enrolled_or_purchased(); | |
| 98 | 98 | |
| 99 | 99 | if ( $row->students ) { |
| 100 | 100 | $courses[] = $row; |
| 101 | 101 | } |