Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug in status_gateways.php that causes incorrect Monitor IP to be shown #3992

Merged

Conversation

luckman212
Copy link
Contributor

There's a bug in status_gateways.php that causes Monitor IP to appear even when a gateway has monitoring disabled. The IP from the last gateway in the list will simply get repeated, as you can see in the screenshot below.

This patch fixes that bug, and also cleans up a few other things: removes some unused variables, gets var names to match what's in system_gateways.php, changes nest of if..elseif..elseif.. to cleaner switch() etc.

I also added the "(default)" text to show which gw's are currently default like they do on the gateway config page, for consistency.

before
image

after
image

This bug causes the Monitor IP to appear even when a gateway
is unmonitored. The monitor IP from the last gateway in the list
to have one will simply get repeated. This patch fixes that bug,
and also cleans up a few other things- unused variables, gets
var names to match whats in system_gateways.php, changes nest of
if...elseif to cleaner switch() etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants