From b06a2d46daba16de30b10d524e23f2708751c0bf Mon Sep 17 00:00:00 2001 From: samhemelryk Date: Mon, 14 Sep 2009 02:49:51 +0000 Subject: [PATCH] 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 --- question/type/calculated/db/upgrade.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5