Details
Description
On PHP 8.1+ there is a deprecated notice written to ../logs_blesta/, like the following:
[2024-08-22T17:16:07.468000+00:00] general.NOTICE: E_DEPRECATED: Implicit conversion from float 307.25444444444446 to int loses precision
Unknown macro: {"code"}[2024-08-22T17:16:07.468335+00:00] general.NOTICE: E_DEPRECATED: Implicit conversion from float 18435.266666666666 to int loses precision
Unknown macro: {"code"}
To reproduce, simply visit Support > Tickets with at least 1 ticket visible.
Possible solution:
$hours_since = (int) ($time/$hour)%24; // Number of hours since $mins_since = (int) ($time/60)%60; // Number of mins since