diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-07-03 15:27:52 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-07-03 15:27:52 +0000 |
commit | 8e0b516022f1c95b310edd39fdb672aa18f3b772 (patch) | |
tree | f4f4645f58bfc2043115be5770353b16a4255d7b /modules | |
parent | fac840fe8680dceff91e9a73d359037e2f755297 (diff) | |
download | brdo-8e0b516022f1c95b310edd39fdb672aa18f3b772.tar.gz brdo-8e0b516022f1c95b310edd39fdb672aa18f3b772.tar.bz2 |
- Patch #26233 by Goba: fixed problem with block regions being buggy.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/block.module | 2 | ||||
-rw-r--r-- | modules/block/block.module | 2 |
2 files changed, 2 insertions, 2 deletions
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) { |