From 108a252aaa644d8c33b7eb019667f43849f2d299 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Tue, 1 Sep 2015 10:36:58 -0500 Subject: [PATCH] Remove remaining now() call in course.lib.php - refs #5405 --- main/inc/lib/course.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/inc/lib/course.lib.php b/main/inc/lib/course.lib.php index 22b2cd14af..a5973a4f30 100755 --- a/main/inc/lib/course.lib.php +++ b/main/inc/lib/course.lib.php @@ -4510,7 +4510,7 @@ class CourseManager WHERE u.access_url_id = " . api_get_current_access_url_id() . " AND login_course_date <= '$now' AND - login_course_date > DATE_SUB(now(), INTERVAL $days DAY) AND + login_course_date > DATE_SUB('$now', INTERVAL $days DAY) AND visibility <> '" . COURSE_VISIBILITY_CLOSED . "' AND visibility <> '" . COURSE_VISIBILITY_HIDDEN . "' GROUP BY a.c_id ORDER BY course_count DESC