From 4bc1e32a79c0928a079113c51f9cf9fcaf525a63 Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Tue, 29 Dec 2009 20:46:26 +0000 Subject: (OC) I cut down the calendar queries to just one which seems to work out a lot better. git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@409 c5b2fb0a-d05d-0410-98c8-828840a80ff6 --- includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/functions.php') diff --git a/includes/functions.php b/includes/functions.php index 8a965c1..46b92f3 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -596,7 +596,7 @@ function GetBlocks($position = BLOCK_LEFT) $result = $db->Query("SELECT * FROM `bayonet_blocks` WHERE `position` = '$position' AND `active` = 1 ORDER BY weight"); $blocks = $db->Fetch($result); - decho($blocks); + foreach($blocks as $block) { $load = 'blocks/'.$block['dir_name'].'/index.php'; -- cgit