1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-17 22:45:54 +02:00

Bug - unexpected T_OBJECT_OPERATOR on Admin/blocks; PHP 4.x compatibility

This commit is contained in:
skodak 2006-07-29 09:08:56 +00:00
parent f4f6599085
commit 592c30370c

@ -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)) {