mod_roomReservationBookingTable: if weekends are not shown, show the next week _also_...
authorrohieb <devnull@localhost>
Sun, 3 Aug 2008 13:43:58 +0000 (15:43 +0200)
committerrohieb <devnull@localhost>
Sun, 3 Aug 2008 13:43:58 +0000 (15:43 +0200)
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.026603 seconds and 4 git commands to generate.