From 8e0b516022f1c95b310edd39fdb672aa18f3b772 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 3 Jul 2005 15:27:52 +0000 Subject: - Patch #26233 by Goba: fixed problem with block regions being buggy. --- modules/block.module | 2 +- modules/block/block.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/block.module b/modules/block.module index 045cfe8f2..f19f1d59d 100644 --- a/modules/block.module +++ b/modules/block.module @@ -444,7 +444,7 @@ function block_list($region, $regions = array('left' => 0, 'right' => 1, 'all' = if (!isset($blocks[$region])) { $blocks[$region] = array(); - $result = db_query("SELECT * FROM {blocks} WHERE status = 1 AND region IN ('%s') ORDER BY weight, module", $regions[$region]); + $result = db_query("SELECT * FROM {blocks} WHERE status = 1 AND region IN (%s) ORDER BY weight, module", $regions[$region]); while ($block = db_fetch_array($result)) { // Use the user's block visibility setting, if necessary if ($block['custom'] != 0) { diff --git a/modules/block/block.module b/modules/block/block.module index 045cfe8f2..f19f1d59d 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -444,7 +444,7 @@ function block_list($region, $regions = array('left' => 0, 'right' => 1, 'all' = if (!isset($blocks[$region])) { $blocks[$region] = array(); - $result = db_query("SELECT * FROM {blocks} WHERE status = 1 AND region IN ('%s') ORDER BY weight, module", $regions[$region]); + $result = db_query("SELECT * FROM {blocks} WHERE status = 1 AND region IN (%s) ORDER BY weight, module", $regions[$region]); while ($block = db_fetch_array($result)) { // Use the user's block visibility setting, if necessary if ($block['custom'] != 0) { -- cgit v1.2.3