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