ITS#4833 fix olcDatabase index offset

This commit is contained in:
Howard Chu 2007-02-07 16:00:03 +00:00
parent b278a8967a
commit 4642c21f65

View File

@ -4003,8 +4003,11 @@ check_name_index( CfEntryInfo *parent, ConfigType ce_type, Entry *e,
renumber = 1; renumber = 1;
} }
} }
if ( !isfrontend && index == -1 ) if ( !isfrontend && index == -1 ) {
index = nsibs; index = nsibs;
if ( ce_type == Cft_Database )
index--;
}
/* just make index = nsibs */ /* just make index = nsibs */
if ( !renumber ) { if ( !renumber ) {