summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/interfaces_ppps_edit.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-01-14 14:15:01 -0200
committerRenato Botelho <renato@netgate.com>2016-01-14 14:15:49 -0200
commit627a6de9bc522c939fc59df4621288a0c6563323 (patch)
tree6788b3c1ec17b4d24ff5181042496d02c9b966bd /src/usr/local/www/interfaces_ppps_edit.php
parentfb1771590d70a27e9eb62f5a5092ea868cf9e74e (diff)
downloadpfsense-627a6de9bc522c939fc59df4621288a0c6563323.zip
pfsense-627a6de9bc522c939fc59df4621288a0c6563323.tar.gz
When an error happens, $pconfig['interfaces'] is already an array
Diffstat (limited to 'src/usr/local/www/interfaces_ppps_edit.php')
-rw-r--r--src/usr/local/www/interfaces_ppps_edit.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/local/www/interfaces_ppps_edit.php b/src/usr/local/www/interfaces_ppps_edit.php
index c7e5cad..26280ea 100644
--- a/src/usr/local/www/interfaces_ppps_edit.php
+++ b/src/usr/local/www/interfaces_ppps_edit.php
@@ -487,7 +487,9 @@ function build_link_list() {
$selected_ports = array();
- if ($pconfig['interfaces']) {
+ if (is_array($pconfig['interfaces'])) {
+ $selected_ports = $pconfig['interfaces'];
+ } elseif (!empty($pconfig['interfaces'])) {
$selected_ports = explode(',', $pconfig['interfaces']);
}
OpenPOWER on IntegriCloud