MDL-20522 the $result was forgotten in the last test if ($result && $oldversion < 2009092000)

This commit is contained in:
pichetp 2009-10-09 18:40:16 +00:00
parent 3c41bba0f2
commit 188c3eaa80

View file

@ -58,7 +58,7 @@ function xmldb_qtype_calculated_upgrade($oldversion) {
} }
upgrade_plugin_savepoint($result, 2009082000 , 'qtype', 'calculated'); upgrade_plugin_savepoint($result, 2009082000 , 'qtype', 'calculated');
} }
if ( $oldversion < 2009092000 ) { //New version in version.php if ( $result && $oldversion < 2009092000 ) { //New version in version.php
/// Define field multichoice to be added to question_calculated_options /// Define field multichoice to be added to question_calculated_options
$table = new xmldb_table('question_calculated_options'); $table = new xmldb_table('question_calculated_options');