Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <diosmosis@users.noreply.github.com>2020-04-22 01:07:50 +0300
committerGitHub <noreply@github.com>2020-04-22 01:07:50 +0300
commitf81b1fdedf3f4667f83d20c65ca0bbad32a8cb00 (patch)
tree02a4cea2f7dbde4a4e8a33a6ea534037738db78b
parent9aee02dfc45f961e8cce5ad062724dc3a7e9ccc1 (diff)
handle dates that are too old for some reason in update (#15841)
-rw-r--r--core/Updates/3.13.5-rc1.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/Updates/3.13.5-rc1.php b/core/Updates/3.13.5-rc1.php
index d465c31683..bc528f1fb7 100644
--- a/core/Updates/3.13.5-rc1.php
+++ b/core/Updates/3.13.5-rc1.php
@@ -34,7 +34,12 @@ class Updates_3_13_5_rc1 extends PiwikUpdates
list($year, $month) = explode('_', $date);
// only add if the table is for jan 2020 or above since tables w/ that date will be most affected
- $dateObj = Date::factory("$year-$month-01 00:00:00");
+ try {
+ $dateObj = Date::factory("$year-$month-01 00:00:00");
+ } catch (\Exception $ex) {
+ continue; // date is too old for some reason
+ }
+
if ($dateObj->isEarlier($startOfProblem)) {
continue;
}