Revision 01cb6a79
Added by Jim Pingle almost 7 years ago
src/usr/local/www/services_dnsmasq.php | ||
---|---|---|
93 | 93 |
$config['dnsmasq']['domainoverrides'] = array(); |
94 | 94 |
} |
95 | 95 |
|
96 |
init_config_arr(array('dnsmasq'' ,hosts')); |
|
96 | 97 |
$a_hosts = &$config['dnsmasq']['hosts']; |
97 | 98 |
|
98 | 99 |
// Add a temporary index so we don't lose the order after sorting |
... | ... | |
102 | 103 |
|
103 | 104 |
hosts_sort(); |
104 | 105 |
|
106 |
init_config_arr(array('dnsmasq', 'domainoverrides')); |
|
105 | 107 |
$a_domainOverrides = &$config['dnsmasq']['domainoverrides']; |
106 | 108 |
|
107 | 109 |
// Add a temporary index so we don't lose the order after sorting |
src/usr/local/www/services_dnsmasq_domainoverride_edit.php | ||
---|---|---|
37 | 37 |
$config['dnsmasq']['domainoverrides'] = array(); |
38 | 38 |
} |
39 | 39 |
|
40 |
init_config_arr(array('dnsmasq', 'domainoverrides')); |
|
40 | 41 |
$a_domainOverrides = &$config['dnsmasq']['domainoverrides']; |
41 | 42 |
|
42 | 43 |
if (is_numericint($_REQUEST['id'])) { |
src/usr/local/www/services_dnsmasq_edit.php | ||
---|---|---|
37 | 37 |
$config['dnsmasq']['hosts'] = array(); |
38 | 38 |
} |
39 | 39 |
|
40 |
init_config_arr(array('dnsmasq', 'hosts')); |
|
40 | 41 |
$a_hosts = &$config['dnsmasq']['hosts']; |
41 | 42 |
|
42 | 43 |
if (is_numericint($_REQUEST['id'])) { |
Also available in: Unified diff
Init dnsmasq arrays before referencing. Fixes #8967
(cherry picked from commit 651b4dcb4ed2dc1404cd532a2a53190e77cbcbc4)