From 8f46152ad6c30950840dc12b8d1428b62e9d5983 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 25 Mar 2007 21:11:26 +0000 Subject: [PATCH] - Rollback. :-) --- modules/block/block.module | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/block/block.module b/modules/block/block.module index 1236d1332b9..d0311a206e0 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -146,8 +146,6 @@ function _block_rehash() { init_theme(); - db_lock_table('blocks'); - $result = db_query("SELECT * FROM {blocks} WHERE theme = '%s'", $theme_key); while ($old_block = db_fetch_object($result)) { $old_blocks[$old_block->module][$old_block->delta] = $old_block; @@ -187,6 +185,7 @@ function _block_rehash() { } } + db_lock_table('blocks'); // Remove all blocks from table. db_query("DELETE FROM {blocks} WHERE theme = '%s'", $theme_key);