diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-12-13 18:35:23 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-12-13 18:35:23 -0800 |
commit | fddadb2df7980fe86deabb0bfa27189d52479a0e (patch) | |
tree | b327fa2afdcb8d22bf7e34c0c6a3bd95884b7a12 | |
parent | 8d6714e356bf64016f5be55f5c4b9bb0a71b5a3c (diff) | |
parent | 3514265febf44394677b7ad06f2824b21e33b51d (diff) | |
download | vyatta-cfg-fddadb2df7980fe86deabb0bfa27189d52479a0e.tar.gz vyatta-cfg-fddadb2df7980fe86deabb0bfa27189d52479a0e.zip |
Merge branch 'master' of phuket.vyatta.com:/usr/local/git/vyatta-cfg
-rw-r--r-- | scripts/VyattaConfigDOMTree.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/VyattaConfigDOMTree.pm b/scripts/VyattaConfigDOMTree.pm index d951202..86aabf8 100644 --- a/scripts/VyattaConfigDOMTree.pm +++ b/scripts/VyattaConfigDOMTree.pm @@ -307,7 +307,7 @@ sub getSubNodesNumber { my @subs = $node->getSubNodes(); - if(defined @subs) { + if(@subs) { $ret = $#subs + 1; } } |