From: stronk7 Date: Mon, 26 Mar 2007 21:52:11 +0000 (+0000) Subject: Avoid to end SQL commands with a trailing ';'. MDL-9058 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1555de81ce6b95238f6f48d7d6387eb2127dda7f;p=moodle.git Avoid to end SQL commands with a trailing ';'. MDL-9058 Merged from MOODLE_18_STABLE --- diff --git a/mod/resource/db/upgrade.php b/mod/resource/db/upgrade.php index dc1f0eb1c2..8e6db05b5f 100644 --- a/mod/resource/db/upgrade.php +++ b/mod/resource/db/upgrade.php @@ -34,7 +34,7 @@ function xmldb_resource_upgrade($oldversion=0) { if ($result && $oldversion < 2007011700) { //move format from options to reference field because it was colliding with course blocks setting - execute_sql("UPDATE {$CFG->prefix}resource SET reference=options WHERE type='text' AND reference='' AND options!='showblocks';"); + execute_sql("UPDATE {$CFG->prefix}resource SET reference=options WHERE type='text' AND reference='' AND options!='showblocks'"); //ignore result }