From e2744e0cfcc1d7d595aeee0cd7b74c69d5120dbd Mon Sep 17 00:00:00 2001 From: mikelittle Date: Wed, 8 Oct 2003 22:27:45 +0000 Subject: [PATCH] Added missing global querycount git-svn-id: http://svn.automattic.com/wordpress/trunk@436 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2-include/b2functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/b2-include/b2functions.php b/b2-include/b2functions.php index af1ad7a58..5affa58a6 100644 --- a/b2-include/b2functions.php +++ b/b2-include/b2functions.php @@ -351,7 +351,7 @@ function strip_all_but_one_link($text, $mylink) { function get_lastpostdate() { - global $tableposts, $cache_lastpostdate, $use_cache, $time_difference, $pagenow, $wpdb; + global $tableposts, $cache_lastpostdate, $use_cache, $time_difference, $pagenow, $wpdb, $querycount; if ((!isset($cache_lastpostdate)) OR (!$use_cache)) { $now = date("Y-m-d H:i:s",(time() + ($time_difference * 3600))); if ($pagenow != 'b2edit.php') { @@ -468,7 +468,7 @@ function get_settings($setting) { } function get_alloptions() { - global $tableoptions, $wpdb; + global $tableoptions, $wpdb, $querycount; $options = $wpdb->get_results("SELECT option_name, option_value FROM $tableoptions"); ++$querycount; if ($options) {