From 4a9ceacae596627890b46101bdfb79bbe48b7b50 Mon Sep 17 00:00:00 2001 From: mikelittle Date: Wed, 6 Aug 2003 22:40:11 +0000 Subject: [PATCH] Fixed call by reference warning. It's not needed. git-svn-id: http://svn.automattic.com/wordpress/trunk@295 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2-include/b2template.functions.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/b2-include/b2template.functions.php b/b2-include/b2template.functions.php index 7af82b4a3f..3c8f7cfa9c 100644 --- a/b2-include/b2template.functions.php +++ b/b2-include/b2template.functions.php @@ -8,8 +8,6 @@ if (!isset($querystring_start)) { $querystring_separator = '&'; } - - /* template functions... */ @@ -949,7 +947,7 @@ function get_the_category() { if ((empty($cache_categories[$cat_ID])) OR (!$use_cache)) { $cat_name = $wpdb->get_var("SELECT cat_name FROM $tablecategories WHERE cat_ID = '$cat_ID'"); ++$querycount; - $cache_categories[$cat_ID] = &$cat_name; + $cache_categories[$cat_ID] = $cat_name; } else { $cat_name = $cache_categories[$cat_ID]; } @@ -961,7 +959,7 @@ function get_the_category_by_ID($cat_ID) { if ((!$cache_categories[$cat_ID]) OR (!$use_cache)) { $cat_name = $wpdb->get_var("SELECT cat_name FROM $tablecategories WHERE cat_ID = '$cat_ID'"); ++$querycount; - $cache_categories[$cat_ID] = &$cat_name; + $cache_categories[$cat_ID] = $cat_name; } else { $cat_name = $cache_categories[$cat_ID]; } @@ -1164,9 +1162,9 @@ function comment_author_email() { function comment_author_link() { global $comment; - $url = trim(stripslashes(&$comment->comment_author_url)); - $email = &$comment->comment_author_email; - $author = stripslashes(&$comment->comment_author); + $url = trim(stripslashes($comment->comment_author_url)); + $email = $comment->comment_author_email; + $author = stripslashes($comment->comment_author); $url = str_replace('http://url', '', $url);