From b03803672422f415b011dea63909009622f5a45b Mon Sep 17 00:00:00 2001 From: ruan Date: Tue, 31 Jul 2018 17:45:42 +0200 Subject: [PATCH] Possible fix for #37 --- history.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/history.php b/history.php index a85250c..2135acf 100644 --- a/history.php +++ b/history.php @@ -105,8 +105,11 @@ if (isset($_GET['from'])) { } } +// PHP's PHP_INT_MAX is platform-dependent... As if int64 isn't a type under 32-bit operating systems +//$before = PHP_INT_MAX; +$before = "9223372036854775807"; $after = 0; -$before = PHP_INT_MAX; + if (isset($_GET['before']) && is_string($_GET['before'])) { if (filter_var($_GET['before'], FILTER_VALIDATE_INT)) { $before = (int)$_GET['before'];