We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f17a668 commit 8e7d0a3Copy full SHA for 8e7d0a3
src/QueryResult.php
@@ -71,6 +71,9 @@ public function getRawResponse()
71
*/
72
public function hasError()
73
{
74
+ if ($this->getRawResponse()->getStatusCode() != 200) {
75
+ return TRUE;
76
+ }
77
// If an error occurs the Piwik server still returns a 200 OK response,
78
// but the body of the response will contain the string "error" in the
79
// "result" parameter.
0 commit comments