} 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) {
+ $this->setDate(strtotime("monday"));
+ } else {
+ $this->setDate(time());
+ }
$this->setAction(MOD_ROOM_RESERVATION_BT_ACTION_SHOW);
$this->nPostInterval = 0;