Skip to content

Commit 22ba6b6

Browse files
authored
Update Matomo.php
convert array to string
1 parent e9abf5e commit 22ba6b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Matomo.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,11 @@ private function _parseUrl(string $method, array $params = [])
552552
] + $params;
553553

554554
foreach ($params as $key => $value) {
555-
$params[$key] = urlencode($value);
555+
if(is_array($value)){
556+
$params[$key] = urlencode(implode(',',$value));
557+
}else{
558+
$params[$key] = urlencode($value);
559+
}
556560
}
557561

558562
if (!empty($this->_rangeStart) && !empty($this->_rangeEnd)) {

0 commit comments

Comments
 (0)