From 676288cec7cdd6dd7c12af11770d7c091d93b349 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Fri, 24 Jul 2009 14:06:47 +0200 Subject: [PATCH] updatedatabase minor fix. --- installer/data/mysql/updatedatabase.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index f099799475..7e7cf3d50f 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -2703,7 +2703,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { my $sth=$dbh->prepare("SELECT value FROM systempreferences WHERE variable='AnonSuggestions'"); $sth->execute; my ($value) = $sth->fetchrow(); - $dbh->do("UPDATE systempreferences SET value=$value WHERE variable='AnonymousPatron'"); + $dbh->do("UPDATE systempreferences SET value='$value' WHERE variable='AnonymousPatron'"); # set AnonymousSuggestion do YesNo # 1st, set the value (1/True if it had a borrowernumber) $dbh->do("UPDATE systempreferences SET value=1 WHERE variable='AnonSuggestions' AND value>0"); -- 2.11.0