system: fix previous

This commit is contained in:
Franco Fichtner 2024-03-06 08:33:11 +01:00
parent fc02096046
commit 29fce66c82

View File

@ -185,7 +185,7 @@ class Gateways extends BaseModel
$config = Config::getInstance()->object();
if (!empty($config->gateways) && count($config->gateways->children()) > 0) {
foreach ($config->gateways->children() as $tag => $gateway) {
if ($tag == 'gateway_item' && count(gateways->children()) > 0) {
if ($tag == 'gateway_item' && count($gateway->children()) > 0) {
$record = [];
// iterate over the individual nodes since empty nodes still return a
// SimpleXMLObject when the container is converted to an array