diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Referrers/Columns/Base.php | 4 | ||||
-rw-r--r-- | plugins/UsersManager/Model.php | 4 |
2 files changed, 4 insertions, 4 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; } diff --git a/plugins/UsersManager/Model.php b/plugins/UsersManager/Model.php index 915adf8767..00fed4f5a5 100644 --- a/plugins/UsersManager/Model.php +++ b/plugins/UsersManager/Model.php @@ -207,7 +207,7 @@ class Model $access = $db->fetchAll($sql, $bind); foreach ($access as &$entry) { - $entry['access'] = explode('|', $entry['access']); + $entry['access'] = explode('|', $entry['access'] ?? ''); } $count = $db->fetchOne("SELECT FOUND_ROWS()"); @@ -659,7 +659,7 @@ class Model $users = $db->fetchAll($sql, $bind); foreach ($users as &$user) { - $user['access'] = explode('|', $user['access']); + $user['access'] = explode('|', $user['access'] ?? ''); } $count = $db->fetchOne("SELECT FOUND_ROWS()"); |