mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
src: fix a few warings from recent crash reports
This commit is contained in:
parent
8d5be026be
commit
7dbc41d60d
@ -3113,7 +3113,7 @@ EOD;
|
||||
* interface in question to avoid problems with complicated routing
|
||||
* topologies
|
||||
*/
|
||||
if(isset($config['filter']['bypassstaticroutes']) && is_array($config['staticroutes']['route']) && count($config['staticroutes']['route'])) {
|
||||
if(isset($config['filter']['bypassstaticroutes']) && isset($config['staticroutes']['route']) && count($config['staticroutes']['route'])) {
|
||||
$ipfrules .= "# Add rules to bypass firewall rules for static routes\n";
|
||||
foreach (get_staticroutes() as $route) {
|
||||
$friendly = $GatewaysList[$route['gateway']]['friendlyiface'];
|
||||
|
||||
@ -1665,7 +1665,7 @@ default:
|
||||
EOD;
|
||||
$setdefaultgw = false;
|
||||
$founddefaultgw = false;
|
||||
if (is_array($config['gateways']['gateway_item'])) {
|
||||
if (isset($config['gateways']['gateway_item'])) {
|
||||
foreach($config['gateways']['gateway_item'] as $gateway) {
|
||||
if($interface == $gateway['interface'] && isset($gateway['defaultgw'])) {
|
||||
$setdefaultgw = true;
|
||||
|
||||
@ -788,7 +788,7 @@ EOD;
|
||||
|
||||
// Handle option, number rowhelper values
|
||||
$dhcpdconf .= "\n";
|
||||
if($dhcpifconf['numberoptions']['item']) {
|
||||
if (isset($dhcpifconf['numberoptions']['item'])) {
|
||||
foreach($dhcpifconf['numberoptions']['item'] as $itemidx => $item) {
|
||||
if(empty($item['type']) || $item['type'] == "text")
|
||||
$dhcpdconf .= " option custom-{$dhcpif}-{$itemidx} \"{$item['value']}\";\n";
|
||||
|
||||
@ -403,7 +403,7 @@ function show_advanced_dns() {
|
||||
</tr>
|
||||
</table>
|
||||
</tr>
|
||||
<?php if ($hostent['aliases']['item'] && is_array($hostent['aliases']['item'])): ?>
|
||||
<?php if (isset($hostent['aliases']['item'])): ?>
|
||||
<?php foreach ($hostent['aliases']['item'] as $alias): ?>
|
||||
<tr>
|
||||
<td class="listlr" ondblclick="document.location='services_dnsmasq_edit.php?id=<?=$i;?>';">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user