We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e78f36c + 1927ea8 commit 3ea0b08Copy full SHA for 3ea0b08
src/QueryResult.php
@@ -78,7 +78,7 @@ public function hasError()
78
// but the body of the response will contain the string "error" in the
79
// "result" parameter.
80
// @see https://github.com/matomo/matomo/issues/7293
81
- return $this->isObject() && $this->parameterExists('result') && $this->get('result') === 'error';
+ return !$this->isObject() || $this->parameterExists('result') && $this->get('result') === 'error';
82
}
83
84
/**
0 commit comments