Skip to content
Browse files

For pinned blocks (that don't have a pageid), make one up on the fly …

…(Fixes bug #4497)
  • Loading branch information...
1 parent e578df9 commit ddf1935f306ec4804a7fe19943149194ac3f6814 mjollnir_ committed Dec 20, 2005
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/blocklib.php
View
2 lib/blocklib.php
@@ -723,6 +723,8 @@ function blocks_get_pinned($page) {
foreach($blocks as $block) {
$block->pinned = true; // so we know we can't move it.
+ // make up an instanceid if we can..
+ $block->pageid = $page->get_id();
$arr[$block->position][$block->weight] = $block;
}

0 comments on commit ddf1935

Please sign in to comment.
Something went wrong with that request. Please try again.