summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/guiconfig.inc2
-rw-r--r--usr/local/www/interfaces_ppp_edit.php5
2 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index 6f94e70..5a32d81 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -405,7 +405,7 @@ function filter_rules_sort() {
function aliases_sort() {
global $g, $config;
- function aliascmp($a, $b) {
+ function aliascmp(&$a, $b) {
return strcmp($a['name'], $b['name']);
}
diff --git a/usr/local/www/interfaces_ppp_edit.php b/usr/local/www/interfaces_ppp_edit.php
index 4fd82af..1b86ea4 100644
--- a/usr/local/www/interfaces_ppp_edit.php
+++ b/usr/local/www/interfaces_ppp_edit.php
@@ -111,7 +111,6 @@ if ($_POST) {
$ppp['connect-max-attempts'] = $_POST['connect-max-attempts'];
$ppp['descr'] = $_POST['descr'];
- interfaces_ppp_configure();
if (isset($id) && $a_ppps[$id])
$a_ppps[$id] = $ppp;
@@ -120,6 +119,8 @@ if ($_POST) {
write_config();
+ interfaces_ppp_configure();
+
header("Location: interfaces_ppp.php");
exit;
}
@@ -191,7 +192,7 @@ include("head.inc");
<tr>
<td width="22%" valign="top" class="vncell">Link Type</td>
<td width="78%" class="vtable">
- <input type="checkbox" value="on" id="defaultgw" name="defaultgw" <?php if (isset($pconfig['defaultgw'])) "echo checked"; ?>>This link will be used as default gateway.
+ <input type="checkbox" value="on" id="defaultgw" name="defaultgw" <?php if (isset($pconfig['defaultgw'])) echo "checked"; ?>>This link will be used as default gateway.
</td>
</tr>
<tr>
OpenPOWER on IntegriCloud