diff options
Diffstat (limited to '1.patch')
-rw-r--r-- | 1.patch | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +From 7575d9125f00f03b3ca644f4be6d1857f4311dd2 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Thu, 17 Oct 2019 12:39:10 +0200 +Subject: [PATCH] Fix Trying to access array offset on value of type null + +--- + lib/Horde/Date/Parser/Token.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/Horde/Date/Parser/Token.php b/lib/Horde/Date/Parser/Token.php +index fcb8537..0d59994 100644 +--- a/lib/Horde/Date/Parser/Token.php ++++ b/lib/Horde/Date/Parser/Token.php +@@ -74,7 +74,7 @@ function ($t) use ($tagClass) { + } + ); + $match = array_shift($matches); +- return $match[1]; ++ return (is_array($match) ? $match[1] : null); + } + + /** |