From c1691badef89692bbd47b85e7ff947dc3a15d643 Mon Sep 17 00:00:00 2001 From: Mike Little Date: Wed, 6 Aug 2003 22:40:11 +0000 Subject: [PATCH] Fixed call by reference warning. It's not needed. git-svn-id: https://develop.svn.wordpress.org/trunk@295 602fd350-edb4-49c9-b593-d223f7449a82 --- 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);