Merge branch 'master' of ssh://olly_g@git.code.sf.net/p/netdisco/netdisco-ng

This commit is contained in:
Oliver Gorwits
2014-11-19 12:53:06 +00:00

View File

@@ -176,7 +176,10 @@ sub sort_modules {
# value. However, the database results are sorted by 1) parent
# 2) class 3) pos 4) index so we should just be able to push onto
# the array and ordering be preserved.
{
no warnings 'uninitialized';
push(@{$modules{$module->parent}{children}{$module->class}}, $module->index);
}
} else {
push(@{$modules{root}}, $module->index);
}