mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
Merge branch 'MDL-30655-master' of git://github.com/sammarshallou/moodle
This commit is contained in:
commit
c4378f125b
@ -1467,8 +1467,10 @@ class block_manager {
|
||||
} else {
|
||||
$newweight = ceil($newweight);
|
||||
for ($weight = $bestgap - 1; $weight >= $newweight; $weight--) {
|
||||
foreach ($usedweights[$weight] as $biid) {
|
||||
$this->reposition_block($biid, $newregion, $weight + 1);
|
||||
if (array_key_exists($weight, $usedweights)) {
|
||||
foreach ($usedweights[$weight] as $biid) {
|
||||
$this->reposition_block($biid, $newregion, $weight + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->reposition_block($block->instance->id, $newregion, $newweight);
|
||||
|
Loading…
x
Reference in New Issue
Block a user