Skip to content

Commit

Permalink
Remove unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Apr 17, 2015
1 parent 5c3f701 commit 3a0d681
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions main/inc/lib/agenda.lib.php
Expand Up @@ -1343,9 +1343,6 @@ public function getCourseEvents($start, $end, $courseInfo, $groupId = 0, $sessio
$dateCondition = null;

if (!empty($start) && !empty($end)) {
$date = new DateTime($start);
$month = $date->format('m');

$dateCondition .= "AND (
agenda.start_date BETWEEN '".$start."' AND '".$end."' OR
agenda.end_date BETWEEN '".$start."' AND '".$end."' OR
Expand All @@ -1354,7 +1351,6 @@ public function getCourseEvents($start, $end, $courseInfo, $groupId = 0, $sessio
YEAR(agenda.start_date) = YEAR(agenda.end_date) AND
MONTH('$start') BETWEEN MONTH(agenda.start_date) AND MONTH(agenda.end_date)
)
)";
}

Expand Down

0 comments on commit 3a0d681

Please sign in to comment.