From de8c842073d44afaeeeff627206bcbbb8c409adb Mon Sep 17 00:00:00 2001 From: Michael Roosz Date: Fri, 22 Apr 2022 15:53:55 +0200 Subject: [PATCH] Fix a "passing null to parameter" warning --- Archiver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Archiver.php b/Archiver.php index 93defe7..b3d4e35 100644 --- a/Archiver.php +++ b/Archiver.php @@ -129,7 +129,7 @@ protected function aggregateFromVisits($query, $keyField, $valueField) protected function cleanCustomVarValue($value) { - if (strlen($value)) { + if ($value !== null && strlen($value)) { return $value; } return self::LABEL_CUSTOM_VALUE_NOT_DEFINED;