Skip to content
Snippets Groups Projects
Commit 61af5b49 authored by Magali Ruffier's avatar Magali Ruffier
Browse files

adds a toplevel flag only for tables containing data

parent d8037ec6
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
#------------------------------------------------------------------------------
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment