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
This commit is contained in:
samhemelryk 2009-09-14 02:49:51 +00:00
parent a1c23826e8
commit b06a2d46da

View File

@ -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