We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In many methods, there is this code used to validate the request:
$xml = simplexml_load_string($response); write_log($xml->result); return ($xml->result == 'true');
However, I found that the response is different in many situations (I only tested few of them), the response is:
Object(SimpleXMLElement)#225 (2) { ["@attributes"]=> array(1) { ["stat"]=> string(2) "ok" } ["success"]=> object(SimpleXMLElement)#221 (0) { } }
so $xml->result == 'true' will never be true.
$xml->result == 'true'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In many methods, there is this code used to validate the request:
However, I found that the response is different in many situations (I only tested few of them), the response is:
so
$xml->result == 'true'
will never be true.The text was updated successfully, but these errors were encountered: