Actions
Regression #12337
closedIPsec widget generates errors if no tunnels are defined
Start date:
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
22.01
Release Notes:
Default
Affected Version:
Affected Architecture:
All
Description
If you click on the 'Tunnels' or 'Mobile' tabs in the widget and have no tunnels defined PHP errors are generated:
PHP Errors: [03-Sep-2021 23:50:13 Europe/London] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/local/www/widgets/widgets/ipsec.widget.php on line 62 [03-Sep-2021 23:50:13 Europe/London] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/local/www/widgets/widgets/ipsec.widget.php on line 63 [03-Sep-2021 23:50:13 Europe/London] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/local/www/widgets/widgets/ipsec.widget.php on line 64 [03-Sep-2021 23:50:13 Europe/London] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/local/www/widgets/widgets/ipsec.widget.php on line 65
Tested:
2.6.0-DEVELOPMENT (amd64) built on Fri Sep 03 01:10:34 EDT 2021 FreeBSD 12.2-STABLE
and
21.09-BETA (amd64) built on Fri Sep 03 06:45:58 EDT 2021 FreeBSD 12.2-STABLE
Files
Actions