mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
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:
parent
a1c23826e8
commit
b06a2d46da
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user