r1426 + handle nameless VIPs
authorDenis Ovsienko <infrastation@yandex.ru>
Mon, 24 Dec 2007 21:18:24 +0000 (21:18 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 24 Dec 2007 21:18:24 +0000 (21:18 +0000)
inc/interface.php

index 768eb20675ed54f71803d02cadc2eb0b50314dad..f6e51590eb66000c1e68e37f2a65abce1b9db0b2 100644 (file)
@@ -3518,7 +3518,7 @@ function renderLVSConfig ($object_id = 0)
                                continue;
                        foreach ($vipdata[$proto] as $vport => $vportdata)
                        {
-                               echo "# auto-VIP: ${vipdata['description']}\n";
+                               echo '# auto-VIP: ' . (empty ($vipdata['description']) ? 'NO NAME' : $vipdata['description'])  . "\n";
                                echo "virtual_server ${vip} ${vport}\n";
                                foreach ($vportdata['rs'] as $rs)
                                        echo "\treal_server ${rs['address']} ${rs['port']} {\n\t}\n";