Merge branch 'MDL-37943_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE

This commit is contained in:
Eloy Lafuente (stronk7) 2013-02-12 01:21:12 +01:00
commit bced529e0e

View file

@ -821,8 +821,7 @@ function upgrade_plugins_blocks($startcallback, $endcallback, $verbose) {
if ($currblock->cron != $block->cron) {
// update cron flag if needed
$currblock->cron = $block->cron;
$DB->update_record('block', $currblock);
$DB->set_field('block', 'cron', $block->cron, array('id' => $currblock->id));
}
// Upgrade various components