Commit 00ddb12e authored by mattwire's avatar mattwire

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

parent 5f1fe018
......@@ -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;
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment