Commits

Nick Freear  committed bc87c45

Bug #186, Leap day/ end of month event not showing up on events diary,

* Fix to 'events' model - '<' fixed to '<=' in WHERE clause of get_events_for_month SQL query.

  • Participants
  • Parent commits 893ce90

Comments (0)

Files changed (1)

File system/application/models/events_model.php

                                     FROM cloudscape c
                                     INNER JOIN user u on u.id = c.user_id
                                     WHERE 
-                                      ((start_date >= $month_start_date AND start_date < $month_end_date) 
+                                      ((start_date >= $month_start_date AND start_date <= $month_end_date)
                                     OR 
                                       (end_date >= $month_start_date  AND end_date <= $month_end_date))
                                     AND u.banned = 0