Project

General

Profile

Bug #11307

PHP error when attempting to edit Wireguard peer after creation

Added by Peter Potvin 5 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
WireGuard
Target version:
Start date:
01/24/2021
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
2.5.x
Affected Architecture:
All

Description

Version:

2.5.0-DEVELOPMENT (amd64)
built on Sun Jan 24 00:06:56 EST 2021
FreeBSD 12.2-STABLE
When attempting to edit a Wireguard peer after creation a php error is received:
[24-Jan-2021 23:33:52 America/Toronto] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /etc/inc/web/wg.inc on line 302

Associated revisions

Revision 2924fc26 (diff)
Added by Jim Pingle 5 months ago

Init var before use. Fixes #11307

History

#1 Updated by Jim Pingle 5 months ago

  • Status changed from New to In Progress
  • Assignee set to Jim Pingle

#2 Updated by Jim Pingle 5 months ago

  • Status changed from In Progress to Feedback
  • % Done changed from 0 to 100

#3 Updated by Jim Pingle 5 months ago

  • Status changed from Feedback to Resolved

No sign of this on snapshots from today, for new or existing peers.

Also available in: Atom PDF