- Patch #26233 by Goba: fixed problem with block regions being buggy.

4.7.x
Dries Buytaert 2005-07-03 15:27:52 +00:00
parent fac840fe86
commit 8e0b516022
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {