X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/blobdiff_plain/26a40908ad54909a8b5cdc7ad27b1fb7c61c2eb8..f2998e155c17650e5644e27257b7a9f305eebe51:/includes/mod_roomReservationBookingTable.inc diff --git a/includes/mod_roomReservationBookingTable.inc b/includes/mod_roomReservationBookingTable.inc old mode 100755 new mode 100644 index b592ce4..fd85ef1 --- a/includes/mod_roomReservationBookingTable.inc +++ b/includes/mod_roomReservationBookingTable.inc @@ -171,7 +171,12 @@ class mod_roomReservationBookingsTable /* extends mclWidget */ { } else { $this->setRoom($aoRooms[0]->getName()); } - $this->setDate(time()); + // if weekends are not shown, show the next week already on saturday + if(!$this->oCfg->isShowWeekend() and (date("w") == 6 or date("w") == 0)) { + $this->setDate(strtotime("monday")); + } else { + $this->setDate(time()); + } $this->setAction(MOD_ROOM_RESERVATION_BT_ACTION_SHOW); $this->nPostInterval = 0;