- Patch #26233 by Goba: fixed problem with block regions being buggy.
parent
fac840fe86
commit
8e0b516022
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue