r3726 trigger_ipv4net_vlanconfig(): give up early, when there are no domains (and...
authorDenis Ovsienko <infrastation@yandex.ru>
Wed, 2 Jun 2010 10:00:20 +0000 (10:00 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Wed, 2 Jun 2010 10:00:20 +0000 (10:00 +0000)
inc/triggers.php

index 165c4b3ab5d76e7d2d51edbcbcc924a547a5b0dd..c9c3b5e792ba363c062a7f318996fb5d8e31af2f 100644 (file)
@@ -198,6 +198,8 @@ function trigger_object_8021qorder ()
 // implement similar logic for IPv4 networks
 function trigger_ipv4net_vlanconfig ()
 {
+       if (!count (getVLANDomainOptions())) // no domains -- no VLANs to bind with
+               return '';
        $netinfo = spotEntity ('ipv4net', $_REQUEST['id']);
        if ($netinfo['vlanc'])
                return 'std';