Commit 829c503a authored by Franco Fichtner's avatar Franco Fichtner

src: last sweep through crash reports for 15.7.7

parent 7e465fc5
...@@ -537,6 +537,7 @@ function unbound_add_host_entries() { ...@@ -537,6 +537,7 @@ function unbound_add_host_entries() {
} }
// Write out entries // Write out entries
@mkdir($g['unbound_chroot_path']);
file_put_contents("{$g['unbound_chroot_path']}/host_entries.conf", $unbound_entries); file_put_contents("{$g['unbound_chroot_path']}/host_entries.conf", $unbound_entries);
} }
......
...@@ -163,7 +163,6 @@ if (isset($id) && $a_ppps[$id]) { ...@@ -163,7 +163,6 @@ if (isset($id) && $a_ppps[$id]) {
if ($_POST) { if ($_POST) {
unset($input_errors); unset($input_errors);
$pconfig = $_POST;
/* okay first of all, cause we are just hiding the PPPoE HTML /* okay first of all, cause we are just hiding the PPPoE HTML
* fields releated to PPPoE resets, we are going to unset $_POST * fields releated to PPPoE resets, we are going to unset $_POST
...@@ -178,6 +177,12 @@ if ($_POST) { ...@@ -178,6 +177,12 @@ if ($_POST) {
unset($_POST['pppoe_pr_preset_val']); unset($_POST['pppoe_pr_preset_val']);
} }
if (!isset($_POST['interfaces'])) {
$_POST['interfaces'] = array();
}
$pconfig = $_POST;
/* input validation */ /* input validation */
switch($_POST['type']) { switch($_POST['type']) {
case "ppp": case "ppp":
......
...@@ -249,7 +249,7 @@ include("head.inc"); ...@@ -249,7 +249,7 @@ include("head.inc");
</tr> </tr>
<?php <?php
$counter = 0; $counter = 0;
if ($pconfig['aliases']['item']): if (isset($pconfig['aliases']['item'])):
foreach($pconfig['aliases']['item'] as $item): foreach($pconfig['aliases']['item'] as $item):
$host = $item['host']; $host = $item['host'];
$domain = $item['domain']; $domain = $item['domain'];
......
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