summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2000-12-23 23:55:04 +0000
committerDries Buytaert <dries@buytaert.net>2000-12-23 23:55:04 +0000
commitda520e5ffb3b35f853db4ee091f668aef63f6fd3 (patch)
tree115dc2dc3d6cf67fcc6dc8097dbeb6aaf2d5dc3d /includes/theme.inc
parent524773f6da48277ba951505b77d125e573e8ab03 (diff)
downloadbrdo-da520e5ffb3b35f853db4ee091f668aef63f6fd3.tar.gz
brdo-da520e5ffb3b35f853db4ee091f668aef63f6fd3.tar.bz2
- small glitch
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 63024432c..41313b407 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -61,7 +61,7 @@ function theme_main_blocks($theme) {
function theme_user_blocks($theme) {
global $PHP_SELF, $repository, $user;
if ($user->id && strstr($PHP_SELF, "index.php")) {
- $result = db_query("SELECT * FROM layout l LEFT JOIN blocks b ON l.block = b.name WHERE l.user = '$user->id' AND l.weight > 0 AND b.status = '1' ORDER BY weight DESC");
+ $result = db_query("SELECT * FROM layout l LEFT JOIN blocks b ON l.block = b.name WHERE l.user = '$user->id' AND l.weight > 0 AND b.status = '1' ORDER BY weight");
while ($block = db_fetch_object($result)) {
$blocks = module_execute($block->module, "block");
$theme->box($blocks[$block->offset]["subject"], $blocks[$block->offset]["content"]);