Bug 1953 - Follow up fix on security patch
authorMarcel de Rooy <M.de.Rooy@rijksmuseum.nl>
Mon, 28 Feb 2011 08:30:07 +0000 (08:30 +0000)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 28 Feb 2011 08:34:40 +0000 (21:34 +1300)
Fixing: Undefined subroutine prepare called on line 722.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/AuthoritiesMarc.pm

index 9315e55..bd5fe64 100644 (file)
@@ -719,7 +719,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);
 }