From 18faba5e06d2696bd4e99175b1c2208a8512f9d9 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 28 Feb 2011 08:30:07 +0000 Subject: [PATCH] Bug 1953 - Follow up fix on security patch Fixing: Undefined subroutine prepare called on line 722. Signed-off-by: Chris Cormack (cherry picked from commit 439d2224e1215fa876ff7c5a06f773003555a035) Signed-off-by: Chris Nighswonger --- C4/AuthoritiesMarc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index 2e107628f9..6cbe373b52 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -717,7 +717,7 @@ sub DelAuthority { my $dbh=C4::Context->dbh; ModZebra($authid,"recordDelete","authorityserver",GetAuthority($authid),undef); - my $sth = prepare("DELETE FROM auth_header WHERE authid=?"); + my $sth = $dbh->prepare("DELETE FROM auth_header WHERE authid=?"); $sth->execute($authid); } -- 2.39.5