mirror of
https://github.com/moodle/moodle.git
synced 2025-04-17 22:45:54 +02:00
Bug #6184 - unexpected T_OBJECT_OPERATOR on Admin/blocks; PHP 4.x compatibility
This commit is contained in:
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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user