From f2998e155c17650e5644e27257b7a9f305eebe51 Mon Sep 17 00:00:00 2001 From: rohieb Date: Sun, 3 Aug 2008 15:43:58 +0200 Subject: [PATCH] mod_roomReservationBookingTable: if weekends are not shown, show the next week _also_ on sunday --- includes/mod_roomReservationBookingTable.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/mod_roomReservationBookingTable.inc b/includes/mod_roomReservationBookingTable.inc index 8d017f5..fd85ef1 100644 --- a/includes/mod_roomReservationBookingTable.inc +++ b/includes/mod_roomReservationBookingTable.inc @@ -172,7 +172,7 @@ class mod_roomReservationBookingsTable /* extends mclWidget */ { $this->setRoom($aoRooms[0]->getName()); } // if weekends are not shown, show the next week already on saturday - if(!$this->oCfg->isShowWeekend() and date("w") == 6) { + if(!$this->oCfg->isShowWeekend() and (date("w") == 6 or date("w") == 0)) { $this->setDate(strtotime("monday")); } else { $this->setDate(time()); -- 2.20.1