diff options
Diffstat (limited to 'plugins/Live/Visitor.php')
-rw-r--r-- | plugins/Live/Visitor.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Live/Visitor.php b/plugins/Live/Visitor.php index f50e495537..de54b7d9b3 100644 --- a/plugins/Live/Visitor.php +++ b/plugins/Live/Visitor.php @@ -124,7 +124,7 @@ class Visitor implements VisitorInterface /** * Removes fields that are not meant to be displayed (md5 config hash) - * Or that the user should only access if he is Super User or admin (cookie, IP) + * Or that the user should only access if they are Super User or admin (cookie, IP) * * @param array $visitorDetails * @return array @@ -158,7 +158,7 @@ class Visitor implements VisitorInterface // ==> also update API/API.php getSuggestedValuesForSegment(), the $segmentsNeedActionsInfo array // flatten visit custom variables - if (!empty($visitorDetailsArray['customVariables']) + if (!empty($visitorDetailsArray['customVariables']) && is_array($visitorDetailsArray['customVariables'])) { foreach ($visitorDetailsArray['customVariables'] as $thisCustomVar) { $visitorDetailsArray = array_merge($visitorDetailsArray, $thisCustomVar); |