From c5749e312ff437cf5b64aacee68d103bbd5ad30f Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 18 Dec 2006 01:58:59 +0000 Subject: [PATCH] Fixed a backwards logic bug preventing format changes sometimes MDL-7961 --- lib/blocklib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blocklib.php b/lib/blocklib.php index 29ec3ec6aad..19bb5499b3b 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -193,7 +193,7 @@ function blocks_delete_instance($instance,$pinned=false) { // Get the block object and call instance_delete() if possible if(!$record = blocks_get_record($instance->blockid)) { - if(!$obj = block_instance($record->name, $instance)) { + if($obj = block_instance($record->name, $instance)) { // Return value ignored $obj->instance_delete(); }