Bug 42453: Remove warning
[WARN] Use of uninitialized value $index_count in numeric ne (!=) at /kohadevbox/koha/about.pl line 899. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
a1f8f35b70
commit
d77897c203
2
about.pl
2
about.pl
|
|
@ -873,7 +873,7 @@ sub elasticsearch_check {
|
||||||
my $es = Search::Elasticsearch->new($es_conf);
|
my $es = Search::Elasticsearch->new($es_conf);
|
||||||
|
|
||||||
foreach my $index (@indexes) {
|
foreach my $index (@indexes) {
|
||||||
my $index_count;
|
my $index_count = 0;
|
||||||
try {
|
try {
|
||||||
$index_count = $es->indices->stats( index => $index )->{_all}{primaries}{docs}{count};
|
$index_count = $es->indices->stats( index => $index )->{_all}{primaries}{docs}{count};
|
||||||
} catch {
|
} catch {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue