← All changes
|
inc/rest-api/v1/admin/class-lp-admin-rest-reset-data-controller.php
+2
-2
4.1.7.1
→
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 | } |
| @@ -173,9 +173,9 @@ | ||
| 173 | 173 | $wpdb->learnpress_user_items, |
| 174 | 174 | array( |
| 175 | 175 | 'status' => LP_COURSE_ENROLLED, |
| 176 | 176 | 'graduation' => 'in-progress', |
| 177 | - 'start_time' => current_time( 'mysql', true ), | |
| 177 | + 'start_time' => current_time( 'mysql', 1 ), | |
| 178 | 178 | 'end_time' => null, |
| 179 | 179 | ), |
| 180 | 180 | array( |
| 181 | 181 | 'item_id' => $course_id, |