From 546f51ee8018ae18365102d8d0f2462dfa0b521c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 11 Jun 2019 09:31:07 -0500 Subject: [PATCH] Bug 22880: Use placeholders Content-Type: text/plain; charset=utf-8 Always. Signed-off-by: Hayley Mapley Signed-off-by: Hayley Mapley Signed-off-by: Lisette Scheer --- .../data/mysql/atomicupdate/bug_22880-move-opacheader-to-news.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/data/mysql/atomicupdate/bug_22880-move-opacheader-to-news.perl b/installer/data/mysql/atomicupdate/bug_22880-move-opacheader-to-news.perl index bddef51a80..046f018be4 100644 --- a/installer/data/mysql/atomicupdate/bug_22880-move-opacheader-to-news.perl +++ b/installer/data/mysql/atomicupdate/bug_22880-move-opacheader-to-news.perl @@ -11,7 +11,7 @@ if( CheckVersion( $DBversion ) ) { foreach my $lang ( @langs ) { print "Inserting opacheader contents into $lang news item...\n"; # If there is a value in the opacheader preference, insert it into opac_news - $dbh->do("INSERT INTO opac_news (branchcode, lang, title, content ) VALUES (NULL, ?, 'opacheader $lang', ?)", undef, "opacheader_$lang", $opacheader); + $dbh->do("INSERT INTO opac_news (branchcode, lang, title, content ) VALUES (NULL, ?, '', ?)", undef, "opacheader_$langs[0]", $opacheader); } } # Remove the opacheader system preference -- 2.11.0