From: samhemelryk Date: Mon, 14 Sep 2009 02:49:51 +0000 (+0000) Subject: questions-type-calculated MDL-20275 Fixed bug causing error when upgrading X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b06a2d46daba16de30b10d524e23f2708751c0bf;p=moodle.git questions-type-calculated MDL-20275 Fixed bug causing error when upgrading Bug was caused because $result was being set by database_manager::create_table which does not return a value --- diff --git a/question/type/calculated/db/upgrade.php b/question/type/calculated/db/upgrade.php index 6dbe8b9caf..69978b1145 100644 --- a/question/type/calculated/db/upgrade.php +++ b/question/type/calculated/db/upgrade.php @@ -51,7 +51,8 @@ function xmldb_qtype_calculated_upgrade($oldversion) { /// Conditionally launch create table for question_calculated_options if (!$dbman->table_exists($table)) { - $result = $dbman->create_table($table); + // $dbman->create_table doesnt return a result, we just have to trust it + $dbman->create_table($table); } /// calculated savepoint reached