1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 14:42:42 +01:00

Fix for default payment method check

This commit is contained in:
Hillel Coren 2016-07-20 10:20:13 +03:00
parent 97a56fac13
commit 9d9fa2ff7e

View File

@ -52,7 +52,11 @@ class AccountGatewayToken extends Eloquent
*/
public function autoBillLater()
{
return $this->default_payment_method->requiresDelayedAutoBill();
if ($this->default_payment_method) {
return $this->default_payment_method->requiresDelayedAutoBill();
}
return false;
}
/**