Skip to content

Commit

Permalink
Merge pull request #99 from matomo-org/php81fixes
Browse files Browse the repository at this point in the history
Another PHP 8.1 fix
  • Loading branch information
tsteur authored Nov 15, 2021
2 parents 37ad506 + 8626c76 commit 441d377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MatomoTracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,7 @@ protected function sendRequest($url, $method = 'GET', $data = null, $force = fal

$forcePostUrlEncoded = false;
if (!$this->doBulkRequests) {
if (strtoupper($this->requestMethod) === 'POST') {
if (!empty($this->requestMethod) && strtoupper($this->requestMethod) === 'POST') {
// POST ALL parameters and have no GET parameters
$urlParts = explode('?', $url);

Expand Down

0 comments on commit 441d377

Please sign in to comment.