Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
2df71ab1
Commit
2df71ab1
authored
Nov 19, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall/nat: fix a crash report
parent
de98bb4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
firewall_nat.php
src/www/firewall_nat.php
+4
-3
No files found.
src/www/firewall_nat.php
View file @
2df71ab1
...
...
@@ -33,7 +33,6 @@ require_once("guiconfig.inc");
require_once
(
"interfaces.inc"
);
require_once
(
"filter.inc"
);
/****f* itemid/delete_id (duplicate to remove itemid.inc)
* NAME
* delete_id - delete an item with ['id'] = $id from $array
...
...
@@ -43,12 +42,14 @@ require_once("filter.inc");
* RESULT
* boolean - true if item was found and deleted
******/
function
delete_id
(
$id
,
&
$array
){
function
delete_id
(
$id
,
&
$array
)
{
// Index to delete
$delete_index
=
NULL
;
if
(
!
is
_array
(
$array
))
if
(
!
is
set
(
$array
))
{
return
false
;
}
// Search for the item in the array
foreach
(
$array
as
$key
=>
$item
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment