From 44373cf0b16a181b5dd380b1f6e6aae1e2d118d5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 14 Nov 2007 09:31:05 +0000 Subject: - Patch #191282 by quicksketch: inconsistent database region for disabled blocks. --- modules/system/system.install | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/system/system.install') diff --git a/modules/system/system.install b/modules/system/system.install index a38fde80f..ba3438b08 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -4524,6 +4524,15 @@ function system_update_6036() { return $ret; } +/** + * Create consistent empty region for disabled blocks. + */ +function system_update_6037() { + $ret = array(); + $ret[] = update_sql("UPDATE {blocks} SET region = '' WHERE status = 0"); + return $ret; +} + /** * @} End of "defgroup updates-5.x-to-6.x" * The next series of updates should start at 7000. -- cgit v1.2.3