Changeset:
        ebc7c40bb991
        
https://sourceforge.net/p/mrbs/hg-code/ci/ebc7c40bb9917f366f012be79b8b9d3810a82c88
Author:
        Campbell Morrison <[email protected]>
Date:
        Fri Jan 20 18:03:03 2017 +0000
Log message:

Restructured code to use new function get_end_last_slot().

diffstat:

 web/month.php |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 336e9f89eb59 -r ebc7c40bb991 web/month.php
--- a/web/month.php     Wed Jan 18 23:38:14 2017 +0000
+++ b/web/month.php     Fri Jan 20 18:03:03 2017 +0000
@@ -133,7 +133,7 @@
 {
   global $tbl_entry;
   global $weekstarts, $view_week_number, $show_plus_link, 
$monthly_view_entries_details;
-  global $enable_periods, $morningstarts, $morningstarts_minutes, $resolution;
+  global $enable_periods, $morningstarts, $morningstarts_minutes;
   global $approval_enabled, $confirmation_enabled;
   global $is_private_field;
   global $user;
@@ -155,7 +155,7 @@
   for ($day_num = 1; $day_num<=$days_in_month; $day_num++)
   {
     $start_first_slot = get_start_first_slot($month, $day_num, $year);
-    $end_last_slot = get_start_last_slot($month, $day_num, $year) + 
$resolution;
+    $end_last_slot = get_end_last_slot($month, $day_num, $year);
     $entries = get_entries_by_room($room, $start_first_slot, $end_last_slot);
 
     // Build an array of information about each day in the month.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to