diff options
author | MichaelRoosz <michael.roosz@web.de> | 2022-04-25 12:02:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 12:02:49 +0300 |
commit | e7febeb860fef1c9cf45d439c17f280a17327dd4 (patch) | |
tree | 55059dd1f4c77f8b833a2525f2ab556c668e109e /plugins/Referrers | |
parent | 5f376f75af1a166fa8e66fc6843e7e1f30cee4d4 (diff) |
Fix some "Passing null to parameter" warnings (#19135)
* Fix "passing null to parameter" errors
* Fix "passing null to parameter" error
* Fix "passing null to parameter" errors
* Fix "passing null to parameter" error
* Update fix for "passing null to parameter" error
Co-authored-by: Michael Roosz <michael.roosz@check24.de>
Diffstat (limited to 'plugins/Referrers')
-rw-r--r-- | plugins/Referrers/Columns/Base.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Referrers/Columns/Base.php b/plugins/Referrers/Columns/Base.php index 1a86d8f6a0..5064972005 100644 --- a/plugins/Referrers/Columns/Base.php +++ b/plugins/Referrers/Columns/Base.php @@ -477,7 +477,7 @@ abstract class Base extends VisitDimension */ protected function getParameterValueFromReferrerUrl($adsenseReferrerParameter) { - $value = trim(urldecode(UrlHelper::getParameterFromQueryString($this->referrerUrlParse['query'], $adsenseReferrerParameter))); + $value = trim(urldecode(UrlHelper::getParameterFromQueryString($this->referrerUrlParse['query'], $adsenseReferrerParameter) ?? '')); return $value; } @@ -522,7 +522,7 @@ abstract class Base extends VisitDimension return false; } - $this->keywordReferrerAnalyzed = mb_strtolower($this->keywordReferrerAnalyzed); + $this->keywordReferrerAnalyzed = mb_strtolower($this->keywordReferrerAnalyzed ?? ''); $this->nameReferrerAnalyzed = mb_strtolower($this->nameReferrerAnalyzed); return true; } |