diff --git a/misc-scripts/meta_levels.pl b/misc-scripts/meta_levels.pl index 1785d84908b2a7d21e4dd9718c03e453f471222c..91f75a34e12729463904fdf7298cc68780de5019 100644 --- a/misc-scripts/meta_levels.pl +++ b/misc-scripts/meta_levels.pl @@ -117,7 +117,9 @@ sub can_use_key { $sth->execute(); my $toplevel = ( $sth->fetchrow_array() )[0]; - return $total == $toplevel; + if ( $toplevel > 0 ) { + return $total == $toplevel; + } } #------------------------------------------------------------------------------