@@ -, +, @@ Bug 15151: Avoid DB access to load C4::Members --- C4/Members.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- a/C4/Members.pm +++ a/C4/Members.pm @@ -41,7 +41,11 @@ use Koha::Borrower::Debarments qw(IsDebarred); use Text::Unaccent qw( unac_string ); use Koha::AuthUtils qw(hash_password); use Koha::Database; -require Koha::NorwegianPatronDB; + +use Module::Load::Conditional qw( can_load ); +if ( can_load( modules => { 'Koha::NorwegianPatronDB' => undef } ) ) { + load Koha::NorwegianPatronDB, qw( NLUpdateHashedPIN NLEncryptPIN NLSync ); +} our ($VERSION,@ISA,@EXPORT,@EXPORT_OK,$debug); --