Widget "Captive Portal Status" small bug
-
The widget "Captive Portal Status" contains a smal visual bug.
To see the effect:
You should have more then one portal user connected.
Like this:
more users connected will be fine also.Now, disconnect a user with the "grey cross button" at the left side.
When this button is clicked, someting like this is sent:
href="?order=&showact=0&act=del&zone=cpzone1&id=2d84ec64268bc40d
&showact will be set … to 0 (zéro).
Now, have a look at line 75:
$showact = isset($_GET['showact']) ? 1 : 0;
$showwact will be set to "1" because 'showact' 'isset' (and has a value of 0 (zéro)) ;D
Result: have a look at your screen: the widget breaks visually because two more columns are shown.
I have tested and propose this for line:
$showact = (isset($_GET['showact']) && ($_GET['showact'] == 1)) ? 1 : 0;
-
Noticed the widget breaking a couple of days ago. Gonna try out your solution.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.