mod_roomReservationBookingTable: if weekends are not shown, show the next week _also_...
[iserv-mod-room-reservation.git] / includes / mod_roomReservationBookingTable.inc
index 8d017f5..fd85ef1 100644 (file)
@@ -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
       $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());
       $this->setDate(strtotime("monday"));
     } else {
       $this->setDate(time());
This page took 0.021633 seconds and 4 git commands to generate.