From 8ece0d6321f5d7891f81412c40f971d3b94c0d54 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 21 Oct 2009 22:43:44 -0400 Subject: [PATCH] one more fix --- classes/ComicPressDBInterface.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/ComicPressDBInterface.inc b/classes/ComicPressDBInterface.inc index 25e088e..2019493 100644 --- a/classes/ComicPressDBInterface.inc +++ b/classes/ComicPressDBInterface.inc @@ -30,6 +30,8 @@ class ComicPressDBInterface { * Find the terminal post in a specific category. */ function get_terminal_post_in_category($category_id, $first = true) { + global $wp_query; + $temp = $wp_query; $wp_query = null; $sort_order = $first ? "asc" : "desc"; $terminal_comic_query = new WP_Query();