diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 64905499ee..a6f6be6daf 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -3448,11 +3448,11 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { my $value = C4::Context->preference("XSLTResultsDisplay"); $dbh->do( "INSERT INTO systempreferences (variable,value,type) - VALUES('OPACXSLTResultsDisplay',$value,'YesNo')"); + VALUES('OPACXSLTResultsDisplay',?,'YesNo')", {}, $value ? 1 : 0); $value = C4::Context->preference("XSLTDetailsDisplay"); $dbh->do( "INSERT INTO systempreferences (variable,value,type) - VALUES('OPACXSLTDetailsDisplay',$value,'YesNo')"); + VALUES('OPACXSLTDetailsDisplay',?,'YesNo')", {}, $value ? 1 : 0); print "Upgrade done (added two new syspref: OPACXSLTResultsDisplay and OPACXSLTDetailDisplay). You may have to go in Admin > System preference to tweak XSLT related syspref both in OPAC and Search tabs.\n "; SetVersion ($DBversion); }