Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
pull/2487/head
Scrutinizer Auto-Fixer 9 years ago
parent 33a4ff908c
commit 0b2747f659
  1. 3
      main/inc/lib/course.lib.php

@ -5879,8 +5879,7 @@ class CourseManager
{
$dateConditional = ($startDate && $endDate) ?
" WHERE session_id IN (SELECT id FROM ".Database::get_main_table(TABLE_MAIN_SESSION).
" WHERE access_start_date = '$startDate' AND access_end_date = '$endDate')" :
null;
" WHERE access_start_date = '$startDate' AND access_end_date = '$endDate')" : null;
$visibility = ($includeClosed ? '' : 'visibility NOT IN (0, 4) AND ');
$query = "SELECT id, code, title

Loading…
Cancel
Save