summaryrefslogtreecommitdiffstats
path: root/usr/local/www/load_balancer_monitor.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/load_balancer_monitor.php')
-rwxr-xr-xusr/local/www/load_balancer_monitor.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/load_balancer_monitor.php b/usr/local/www/load_balancer_monitor.php
index 0f2bddb..b9ae1e2 100755
--- a/usr/local/www/load_balancer_monitor.php
+++ b/usr/local/www/load_balancer_monitor.php
@@ -64,10 +64,10 @@ if ($_POST) {
}
if ($_GET['act'] == "del") {
- if ($a_monitor[$_GET['id']]) {
+ if (array_key_exists($_GET['id'], $a_monitor)) {
/* make sure no pools reference this entry */
if (is_array($config['load_balancer']['lbpool'])) {
- foreach ($config['load_balancer']['pool'] as $pool) {
+ foreach ($config['load_balancer']['lbpool'] as $pool) {
if ($pool['monitor'] == $a_monitor[$_GET['id']]['name']) {
$input_errors[] = gettext("This entry cannot be deleted because it is still referenced by at least one pool.");
break;
OpenPOWER on IntegriCloud