Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit c9a8aa63 authored by Davide Cecchetto's avatar Davide Cecchetto Committed by GitHub
Browse files

Fix php warning (#3521)

Fix Invalid argument supplied for foreach() on all_nats = false
parent f206e5ae
Branches
No related tags found
No related merge requests found
...@@ -35,12 +35,14 @@ else { ...@@ -35,12 +35,14 @@ else {
// check if we have any policy nat ! // check if we have any policy nat !
$policy_nat_found = false; $policy_nat_found = false;
if($all_nats !== false) {
foreach ($all_nats as $n) { foreach ($all_nats as $n) {
if ($n->policy=="Yes") { if ($n->policy=="Yes") {
$policy_nat_found = true; $policy_nat_found = true;
break; break;
} }
} }
}
// table // table
print "<table class='table sorted table-striped table-top table-td-top' data-cookie-id-table='nat_table'>"; print "<table class='table sorted table-striped table-top table-td-top' data-cookie-id-table='nat_table'>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment