February 28, 2013 at 11:30 /
You could add
1 |
if(date('d.m.Y',$this->arrival) !== date('d.m.Y',$this->departure)) $this->times += 1; |
to the beginning and
1 |
if(date('d.m.Y',$this->arrival) !== date('d.m.Y',$this->departure)) $this->times –= 1; |
to the end of the Calculate () function in /lib/classes/reservation.class.php
Regards