mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
fix for bug reported by audiohazard-at-gmx.de on the devel list
This commit is contained in:
parent
ea2c699f5c
commit
e7a3f37f06
@ -1848,7 +1848,9 @@ class uiviews extends uical
|
||||
}
|
||||
else
|
||||
{
|
||||
$day_percentage = ($time_of_day-$this->wd_start) / ($this->wd_end - $this->wd_start); // between 0 and 1
|
||||
$wd_lenght = $this->wd_end - $this->wd_start;
|
||||
if ($wd_lenght <= 0) $wd_lenght = 24*60;
|
||||
$day_percentage = ($time_of_day-$this->wd_start) / $wd_lenght; // between 0 and 1
|
||||
}
|
||||
$days = ($end - $start) / DAY_s;
|
||||
$percent += $day_percentage / $days;
|
||||
|
Loading…
Reference in New Issue
Block a user