| @@ -82,10 +82,9 @@ | ||
| 82 | 82 | } |
| 83 | 83 | // Get block data. |
| 84 | 84 | $block['fields'] = array('id', 'lastModified', 'pinPoint', 'code', 'links', 'expressions'); |
| 85 | 85 | // get() developed to return multiple blocks, fetch the first. |
| 86 | - $result = $blocks->get($blockId, $block['fields']); | |
| 87 | - $block = reset($result); | |
| 86 | + $block = array_shift($blocks->get($blockId, $block['fields'])); | |
| 88 | 87 | // Set other fields. |
| 89 | 88 | $block->location = $block->state = ''; |
| 90 | 89 | $block->parent = $blockId; |
| 91 | 90 | $block->type = 'revision'; |