Skip to content

Commit

Permalink
Fix a "passing null to parameter" warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelRoosz committed Apr 22, 2022
1 parent d731ff0 commit de8c842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Archiver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit de8c842

Please sign in to comment.