Bug 23785: Fix call get_coins on undef value in opac-search.pl
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 11 Nov 2019 09:14:14 +0000 (10:14 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 13 Dec 2019 14:04:39 +0000 (14:04 +0000)
commit773f7ca461d90fef78311bb09aebc64ff47a3e33
treeaa0a6beb302593f09ebeb5e5b8397ec513501841
parent916bb2a2b888873d3ace0aa9ff8aeda89c722b24
Bug 23785: Fix call get_coins on undef value in opac-search.pl

If the search engine index returns a record that is no longer in the DB,
an OPAC search will explode with:
  Can't call method "get_coins" on an undefined value at
  /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 692.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
opac/opac-search.pl