summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@netgate.com>2018-09-05 16:17:24 -0400
committerjim-p <jimp@netgate.com>2018-09-05 16:17:54 -0400
commit7d80bbbede8eee0f6a5ffceecf06a147fe958981 (patch)
treeaabd4d45403e4b0d04126a1ce59fcfab07c0124e
parent577afc43b51e83f5ac32fe5654a63d217a81eb8e (diff)
downloadpfsense-7d80bbbede8eee0f6a5ffceecf06a147fe958981.zip
pfsense-7d80bbbede8eee0f6a5ffceecf06a147fe958981.tar.gz
Init gateway group array before use. Fixes #8876
(cherry picked from commit b54a1af45c5add4e57253bfa0b562dadf3ae10f7)
-rw-r--r--src/usr/local/www/status_gateway_groups.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/usr/local/www/status_gateway_groups.php b/src/usr/local/www/status_gateway_groups.php
index a6aebb3..a3d8e21 100644
--- a/src/usr/local/www/status_gateway_groups.php
+++ b/src/usr/local/www/status_gateway_groups.php
@@ -35,10 +35,7 @@ define('COLOR', true);
require_once("guiconfig.inc");
-if (!is_array($config['gateways']['gateway_group'])) {
- $config['gateways']['gateway_group'] = array();
-}
-
+init_config_arr(array('gateways', 'gateway_group'));
$a_gateway_groups = &$config['gateways']['gateway_group'];
$changedesc = gettext("Gateway Groups") . ": ";
OpenPOWER on IntegriCloud