diff --git a/misc/migration_tools/rebuild_zebra.pl b/misc/migration_tools/rebuild_zebra.pl index dd97170745..beaf4d3802 100755 --- a/misc/migration_tools/rebuild_zebra.pl +++ b/misc/migration_tools/rebuild_zebra.pl @@ -452,7 +452,7 @@ sub select_all_authorities { sub select_all_biblios { $table = 'biblioitems' - if grep { /^$table$/ } @tables_allowed_for_select; + unless grep { /^$table$/ } @tables_allowed_for_select; my $strsth = qq{ SELECT biblionumber FROM $table }; $strsth.=qq{ WHERE $where } if ($where); $strsth.=qq{ LIMIT $length } if ($length && !$offset);