Fix function if hours.
This commit is contained in:
parent
7c01b54d73
commit
3d26351c6b
@ -912,7 +912,7 @@ function num_open_day($timestampStart, $timestampEnd, $inhour = 0, $lastday = 0,
|
|||||||
|
|
||||||
$nbOpenDay=$lastday;
|
$nbOpenDay=$lastday;
|
||||||
|
|
||||||
if ($inhour == 1) $nbOpenDay = $nbOpenDay*24 . $langs->trans("HourShort");
|
if ($inhour == 1) $nbOpenDay = ($nbOpenDay * 24);
|
||||||
return $nbOpenDay - (($inhour == 1 ? 12 : 0.5) * abs($halfday));
|
return $nbOpenDay - (($inhour == 1 ? 12 : 0.5) * abs($halfday));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user