Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug #6184 - unexpected T_OBJECT_OPERATOR on Admin/blocks; PHP 4.x com…
…patibility
  • Loading branch information
skodak committed Jul 29, 2006
1 parent f4f6599 commit 592c303
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/blocks.php
Expand Up @@ -90,7 +90,8 @@

} else {
// Inform block it's about to be deleted
block_instance($block->name)->before_delete();
$blockobject = block_instance($block->name);
$blockobject->before_delete();

// Delete block
if (!delete_records('block', 'id', $block->id)) {
Expand Down

0 comments on commit 592c303

Please sign in to comment.