mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 18:44:44 +00:00
system: ignore legacy invalid gateway structure
Adds a spurious gateway due to presence of <gateways><gateway_item/></gateways> but it it also begs the question why we go into legacy mode when we only have automatic gateways so none are stored in the MVC model, which is kind of a standard case.
This commit is contained in:
parent
bb17672ed8
commit
6984aefe43
@ -184,7 +184,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') {
|
||||
if ($tag == 'gateway_item' && count(gateways->children()) > 0) {
|
||||
$record = [];
|
||||
// iterate over the individual nodes since empty nodes still return a
|
||||
// SimpleXMLObject when the container is converted to an array
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user