Revision: 1367
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1367&view=rev
Author:   cimorrison
Date:     2010-07-01 14:14:41 +0000 (Thu, 01 Jul 2010)

Log Message:
-----------
Removed a redundant call to get_default_room()

Modified Paths:
--------------
    mrbs/trunk/web/week.php

Modified: mrbs/trunk/web/week.php
===================================================================
--- mrbs/trunk/web/week.php     2010-07-01 14:06:09 UTC (rev 1366)
+++ mrbs/trunk/web/week.php     2010-07-01 14:14:41 UTC (rev 1367)
@@ -16,11 +16,11 @@
   $debug_flag = 0;
 }
 
-$num_of_days=7; //could also pass this in as a parameter or whatever
-
 // Check the user is authorised for this page
 checkAuthorised();
 
+$num_of_days=7; //could also pass this in as a parameter or whatever
+
 // Calculate how many days to skip back to get to the start of the week
 $time = mktime(12, 0, 0, $month, $day, $year);
 $skipback = (date("w", $time) - $weekstarts + 7) % 7;
@@ -29,11 +29,6 @@
 // because we want the booking display to start on the first day of the week 
(eg Sunday if $weekstarts is 0)
 // but we want to preserve the notion of the current day (or 'sticky day') 
when switching between pages
 
-if (empty($room))
-{
-  $room = get_default_room($area);
-}
-// Note $room will be 0 if there are no rooms; this is checked for below.
 
 // print the page header
 print_header($day, $month, $year, $area, isset($room) ? $room : "");


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to