Skip to content

Commit faee1cd

Browse files
committed
MDL-82047 analytics: remove 32-bit integer checks for maximum time.
1 parent bcd8e0d commit faee1cd

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

analytics/classes/analysable.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,8 @@
1414
// You should have received a copy of the GNU General Public License
1515
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
1616

17-
/**
18-
* Any element analysers can analyse.
19-
*
20-
* @package core_analytics
21-
* @copyright 2016 David Monllao {@link http://www.davidmonllao.com}
22-
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23-
*/
24-
2517
namespace core_analytics;
2618

27-
defined('MOODLE_INTERNAL') || die();
28-
2919
/**
3020
* Any element analysers can analyse.
3121
*
@@ -37,9 +27,8 @@ interface analysable {
3727

3828
/**
3929
* Max timestamp.
40-
* We are limited by both PHP's max int value and DB (cross-db) max int allowed. Use the smallest one.
4130
*/
42-
const MAX_TIME = PHP_INT_MAX < SQL_INT_MAX ? PHP_INT_MAX : SQL_INT_MAX;
31+
const MAX_TIME = SQL_INT_MAX;
4332

4433
/**
4534
* The analysable unique identifier in the site.

0 commit comments

Comments
 (0)