X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/blobdiff_plain/5d7337151afc6910cb08cb261490cf514a0b6cee..f2998e155c17650e5644e27257b7a9f305eebe51:/includes/mod_roomReservationBookingTable.inc 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());