]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 341374: fix checksetup failure when database exists with non-Bugzilla...
authorvladd%bugzilla.org <>
Sun, 18 Jun 2006 23:54:13 +0000 (23:54 +0000)
committervladd%bugzilla.org <>
Sun, 18 Jun 2006 23:54:13 +0000 (23:54 +0000)
Bugzilla/DB/Mysql.pm

index 0e0cc2e1d21ba77a433c5a9ff5d2a4cb6ac0bd4b..58ac2b71896f6cd099573376754faf024450118d 100644 (file)
@@ -268,9 +268,9 @@ sub bz_setup_database {
     # For fixing the inconsistent naming of Schema indexes,
     # we also check for one of those inconsistently-named indexes.
     my @tables = $self->bz_table_list_real();
-    if ( scalar(@tables) && 
-         ($self->bz_index_info_real('bugs', 'assigned_to') ||
-          $self->bz_index_info_real('flags', 'flags_bidattid_idx')) )
+    if (grep($_ eq 'bugs', @tables)
+        && ($self->bz_index_info_real('bugs', 'assigned_to')
+            || $self->bz_index_info_real('flags', 'flags_bidattid_idx')) )
     {
 
         # This is a check unrelated to the indexes, to see if people are