mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 04:33:13 +01:00
Fix for bug 2628.
This commit is contained in:
parent
e9df755235
commit
ff67989728
@ -491,7 +491,7 @@ function blocks_execute_action($page, &$pageblocks, $blockaction, $instanceorid)
|
||||
$newinstance->pageid = $page->get_id();
|
||||
$newinstance->pagetype = $page->get_type();
|
||||
$newinstance->position = $newpos;
|
||||
$newinstance->weight = $weight->nextfree;
|
||||
$newinstance->weight = empty($weight->nextfree) ? 0 : $weight->nextfree;
|
||||
$newinstance->visible = 1;
|
||||
$newinstance->configdata = '';
|
||||
insert_record('block_instance', $newinstance);
|
||||
|
Loading…
x
Reference in New Issue
Block a user