From 1dcfc2d6aa7d86368f74eb7c66c00bc8cc79fa63 Mon Sep 17 00:00:00 2001 From: Andrew Nugged Date: Mon, 18 Oct 2021 16:48:55 +0300 Subject: [PATCH] Bug 28700: hotfix for scalar in $infos to test: just creation of new borrowers blocked without this hotfix. --- C4/Log.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Log.pm b/C4/Log.pm index 15752b815b..b3505ff6ac 100644 --- a/C4/Log.pm +++ b/C4/Log.pm @@ -77,7 +77,7 @@ sub logaction { $interface //= C4::Context->interface; $infos = $infos->get_from_storage - if ref($infos) !~ /HASH|ARRAY/ && $infos->isa('Koha::Object'); + if ref($infos) && ref($infos) !~ /HASH|ARRAY/ && $infos->isa('Koha::Object'); my $dbh = C4::Context->dbh; my $sth=$dbh->prepare("Insert into action_logs (timestamp,user,module,action,object,info,interface) values (now(),?,?,?,?,?,?)"); -- 2.33.0