From d815805fff0c3dbf762475181c164e44f63ba22f Mon Sep 17 00:00:00 2001 From: Jean-Christian Paul Denis Date: Mon, 2 Jan 2023 09:57:04 +0100 Subject: [PATCH] fix passing nulll to parameter (thx @brol ) --- _widgets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_widgets.php b/_widgets.php index 871732b..93cc9be 100644 --- a/_widgets.php +++ b/_widgets.php @@ -52,7 +52,7 @@ class shortArchivesWidgets } $active_year = null; - if ((dcCore::app()->url->type == 'archive') && preg_match('`^/([0-9]{4})/([0-9]{2})$`', dcCore::app()->url->args, $matches)) { + if ((dcCore::app()->url->type == 'archive') && preg_match('`^/([0-9]{4})/([0-9]{2})$`', (string) dcCore::app()->url->args, $matches)) { $active_year = $matches[1]; }