Skip to content

Commit a1d4be3

Browse files
committed
Top Performing course issue fix
1 parent b1d779c commit a1d4be3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Instructor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ public static function get_top_performing_courses_by_instructor( $instructor_id,
778778
COALESCE(earnings.total_revenue, 0) AS total_revenue,
779779
COALESCE(enrollments.total_student, 0) AS total_student
780780
FROM wp_posts post
781-
LEFT JOIN ({$earnings_sql}) earnings
781+
INNER JOIN ({$earnings_sql}) earnings
782782
ON earnings.course_id = post.ID
783783
LEFT JOIN ({$enrollment_sql}) enrollments
784784
ON enrollments.course_id = post.ID

0 commit comments

Comments
 (0)