1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 12:12:48 +01:00

Minor fixes

This commit is contained in:
David Bomba 2021-12-29 17:05:04 +11:00
parent 7d61ec8317
commit 60897083d1

View File

@ -164,7 +164,7 @@ class ClientPortalController extends BaseController
$gatewayTypeIdCast = false;
if(array_key_exists('gatewayTypeId', $paymentTypes[0]))
if(count($paymentTypes) >= 1 && array_key_exists('gatewayTypeId', $paymentTypes[0]))
$gatewayTypeIdCast = $paymentTypes[0]['gatewayTypeId'];
$data += [