Skip to content
Snippets Groups Projects
Commit 00ddb12e authored by mattwire's avatar mattwire
Browse files

Fix 'is not a boolean' in IPNs when retrieving test flag

parent 5f1fe018
No related branches found
No related tags found
No related merge requests found
......@@ -278,7 +278,7 @@ trait CRM_Core_Payment_MJWTrait {
* @return bool
*/
public function getIsTestMode() {
return isset($this->_paymentProcessor['is_test']) && $this->_paymentProcessor['is_test'] ? TRUE : FALSE;
return isset($this->_paymentProcessor['is_test']) && $this->_paymentProcessor['is_test'] ? 1 : 0;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment