--- C:/Dokumente und Einstellungen/alexander.schroeder/Desktop/speedup/drupal-6.8/modules/block/block.module	Tue Jun 24 15:40:08 2008
+++ C:/Dokumente und Einstellungen/alexander.schroeder/Desktop/speedup/drupal-6.8/modules/block/Kopie von block.module	Fri Dec 19 10:41:18 2008
@@ -404,7 +404,7 @@
 
   if (!count($blocks)) {
     $rids = array_keys($user->roles);
-    $result = db_query(db_rewrite_sql("SELECT DISTINCT b.* FROM {blocks} b LEFT JOIN {blocks_roles} r ON b.module = r.module AND b.delta = r.delta WHERE b.theme = '%s' AND b.status = 1 AND (r.rid IN (". db_placeholders($rids) .") OR r.rid IS NULL) ORDER BY b.region, b.weight, b.module", 'b', 'bid'), array_merge(array($theme_key), $rids));
+    $result = db_query("SELECT b2.*	FROM (SELECT DISTINCT b.module, b.delta, b.theme, b.status, b.weight, b.region, b.custom, b.throttle, b.visibility, crc32(b.pages) as pages_crc32, b.title FROM blocks b LEFT JOIN blocks_roles r ON b.module = r.module AND b.delta = r.delta WHERE b.theme = '%s' AND b.status = 1 AND (r.rid IN (". db_placeholders($rids) .") OR r.rid IS NULL)	ORDER BY region, weight, module) as b3	LEFT JOIN blocks b2 on b3.module=b2.module and b3.theme=b2.theme and b3.status=b2.status and b3.weight=b2.weight and b3.region=b2.region and b3.custom=b2.custom and b3.throttle=b2.throttle and b3.visibility=b2.visibility and b3.pages_crc32=crc32(b2.pages) and b3.title=b2.title;", array_merge(array($theme_key), $rids));
     while ($block = db_fetch_object($result)) {
       if (!isset($blocks[$block->region])) {
         $blocks[$block->region] = array();
