blocks upgrade: MDL-20820 Problem found and fixed by Oleg Sychev.

This commit is contained in:
Tim Hunt 2009-11-11 14:50:01 +00:00
parent 93d3a2506b
commit 35fb85a7da

View File

@ -2030,7 +2030,7 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
$stickyblocks = $DB->get_recordset('block_pinned_old');
foreach ($stickyblocks as $stickyblock) {
$newblock = new object();
$newblock->blockname = $blocks[$stickyblock]->name;
$newblock->blockname = $blocks[$stickyblock->blockid]->name;
$newblock->contextid = $syscontext->id;
$newblock->showinsubcontexts = 1;
switch ($stickyblock->pagetype) {