From 84b1569fe5ebc38b4a31d031225c29fa5cb382e3 Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 9 Oct 2012 20:16:10 +0200 Subject: [PATCH] fixed PHP5 only variables should be assigned by reference --- include/functions_comments.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/functions_comments.inc.php b/include/functions_comments.inc.php index c518e4bc..73980a0d 100644 --- a/include/functions_comments.inc.php +++ b/include/functions_comments.inc.php @@ -28,7 +28,7 @@ function serendipity_checkCommentToken($token, $cid) { serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}options WHERE okey LIKE 'comment_%' AND name < " . (time() - 604800) ); // Get the token for this comment id - $tokencheck =& serendipity_db_query("SELECT * FROM {$serendipity['dbPrefix']}options + $tokencheck = serendipity_db_query("SELECT * FROM {$serendipity['dbPrefix']}options WHERE okey = 'comment_" . $cid . "' LIMIT 1", true, 'assoc'); // Verify it against the passed key if (is_array($tokencheck)) { @@ -484,7 +484,7 @@ function serendipity_printCommentsByAuthor() { } foreach($entry_comments AS $entry_id => $_data) { - $entry_comments[$entry_id]['tpl_comments'] =& serendipity_printComments($_data['comments'], VIEWMODE_LINEAR, 0, null, 'COMMENTS', 'comments.tpl'); + $entry_comments[$entry_id]['tpl_comments'] = serendipity_printComments($_data['comments'], VIEWMODE_LINEAR, 0, null, 'COMMENTS', 'comments.tpl'); } $serendipity['smarty']->assignByRef('comments_by_authors', $entry_comments);