Project

General

Profile

Actions

Regression #12550

closed

PHP ``foreach`` error in IPsec status

Added by Jim Pingle about 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Viktor Gurov
Category:
IPsec
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
22.01
Release Notes:
Force Exclusion
Affected Version:
2.6.0
Affected Architecture:

Description

In rare occasions I have hit a PHP error from the IPsec status page, though I haven't managed to replicate it on demand yet.

[30-Nov-2021 12:59:47 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/status_ipsec.php on line 117

Probably easy to fix with an isset + is_array check before the foreach.

Actions

Also available in: Atom PDF