mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
wizard: fix a crash report
This commit is contained in:
parent
d53f28c25f
commit
4e20a44bf6
@ -391,7 +391,7 @@
|
||||
</fields>
|
||||
<stepbeforeformdisplay>
|
||||
<![CDATA[
|
||||
if (is_array($config['gateways']['gateway_item']))
|
||||
if (isset($config['gateways']['gateway_item']))
|
||||
foreach ($config['gateways']['gateway_item'] as $gw)
|
||||
if ($gw['name'] == 'WANGW' || (!empty($config['wizardtemp']['wangateway']) && $gw['gateway'] == $config['wizardtemp']['wangateway']))
|
||||
$config['wizardtemp']['wangateway'] = $gw['gateway'];
|
||||
@ -584,7 +584,7 @@
|
||||
if (!is_array($config['gateways'])) {
|
||||
$config['gateways'] = array();
|
||||
}
|
||||
if (!is_array($config['gateways']['gateway_item'])) {
|
||||
if (!isset($config['gateways']['gateway_item'])) {
|
||||
$config['gateways']['gateway_item'] = array();
|
||||
}
|
||||
$found = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user