Skip to content

Commit

Permalink
Merge pull request #44 from MichaelRoosz/fix-passing-null
Browse files Browse the repository at this point in the history
Fix a "passing null  to parameter" warning
  • Loading branch information
AltamashShaikh authored Apr 24, 2022
2 parents 437dbca + de8c842 commit 1729512
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 1729512

Please sign in to comment.