mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
MDL-72359 core_analytics: Better handling of MAX_TIME
We are limited by both PHP's max int value and DB (cross-db) max int allowed. We need to use the smallest one
This commit is contained in:
parent
8f9b3e1d52
commit
a2866d6833
@ -37,8 +37,9 @@ interface analysable {
|
||||
|
||||
/**
|
||||
* Max timestamp.
|
||||
* We are limited by both PHP's max int value and DB (cross-db) max int allowed. Use the smallest one.
|
||||
*/
|
||||
const MAX_TIME = PHP_INT_MAX;
|
||||
const MAX_TIME = PHP_INT_MAX < 9999999999 ? PHP_MAX_INT : 9999999999;
|
||||
|
||||
/**
|
||||
* The analysable unique identifier in the site.
|
||||
|
Loading…
x
Reference in New Issue
Block a user