From a161110a6ba10a43df67179263d62f201631e88d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 7 May 2003 21:00:36 +0000 Subject: - Applied Michael Caerwyn's "%s -> %d" patch. - Changed all occurences of '%d' to %d as suggested on the mailing list. --- includes/theme.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/theme.inc') diff --git a/includes/theme.inc b/includes/theme.inc index fc2ce1a68..1822da23a 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -181,7 +181,7 @@ function theme_init() { function theme_blocks($region) { global $user, $REQUEST_URI; - $result = db_query("SELECT * FROM blocks WHERE (status = '1' OR custom = '1') ". ($region != "all" ? "AND region = '%s' " : "") ."ORDER BY weight, module", $region == "left" ? 0 : 1); + $result = db_query("SELECT * FROM blocks WHERE (status = '1' OR custom = '1') ". ($region != "all" ? "AND region = %d " : "") ."ORDER BY weight, module", $region == "left" ? 0 : 1); while ($result && ($block = db_fetch_object($result))) { if ((($block->status && (!$user->uid || !$block->custom)) || ($block->custom && $user->block[$block->module][$block->delta])) && (!$block->path || preg_match('/'. str_replace('/', '\/', $block->path) .'/', request_uri()))) { -- cgit v1.2.3