From c2c0164dcd536f94b88a895d238adc7192d59efe Mon Sep 17 00:00:00 2001 From: Dmitrii Metelkin Date: Wed, 2 May 2018 10:30:07 +1000 Subject: [PATCH] Fix broken SQL --- db/upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/upgrade.php b/db/upgrade.php index 7c99d96..bf7ae8f 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -29,7 +29,7 @@ function xmldb_auth_userkey_upgrade($oldversion) { if ($oldversion < 2017051503) { // Confirm all previously created users. - $DB->execute('UPDATE {user} SET confirmed=1 WHERE auth="userkey"'); + $DB->execute("UPDATE {user} SET confirmed=? WHERE auth=?", array(1, 'userkey')); upgrade_plugin_savepoint(true, 2017051503, 'auth', 'userkey'); }