Commit cd4b9588 authored by Ad Schellevis's avatar Ad Schellevis

fix some more config handling for php 7.1, https://github.com/opnsense/core/issues/1733

parent 678aa412
......@@ -39,7 +39,7 @@ $count = count($config['system']['user']);
$index = 0;
for (; $index < $count; $index++) {
$user =& $config['system']['user'][$index];
$user = &config_read_array('system', 'user', $index);
if($user['scope'] == "system")
continue;
echo "1\n";
......
......@@ -214,7 +214,7 @@ function add_gateway_to_config($interface, $gatewayip, $inet_type, $is_in_subnet
$config['gateways']['gateway_item'] = array();
}
$a_gateways = &$config['gateways']['gateway_item'];
$a_gateways = &config_read_array('gateways', 'gateway_item');
$is_default = true;
$new_name = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment