From: rohieb Date: Sun, 3 Aug 2008 13:43:58 +0000 (+0200) Subject: mod_roomReservationBookingTable: if weekends are not shown, show the next week _also_... X-Git-Tag: REL_8.08.03~2 X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/commitdiff_plain/f2998e155c17650e5644e27257b7a9f305eebe51 mod_roomReservationBookingTable: if weekends are not shown, show the next week _also_ on sunday --- 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());