From 5ccb3cba67ef7ca4a41865a81c1281d5114065af Mon Sep 17 00:00:00 2001 From: onli Date: Sat, 29 May 2021 17:21:08 +0200 Subject: [PATCH] fix: log_trackback called when not available (regular comments) Removes the not strictly necessary function call --- include/functions_comments.inc.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/functions_comments.inc.php b/include/functions_comments.inc.php index 5e8dcbbc..f832b2b3 100644 --- a/include/functions_comments.inc.php +++ b/include/functions_comments.inc.php @@ -1016,15 +1016,11 @@ function serendipity_saveComment($id, $commentInfo, $type = 'NORMAL', $source = serendipity_plugin_api::hook_event('frontend_saveComment', $ca, $commentInfo); if (!is_array($ca) || serendipity_db_bool($ca['allow_comments'])) { - log_trackback('insert comment into DB'); - $commentInfo['comment_cid'] = serendipity_insertComment($id, $commentInfo, $type, $source, $ca); $commentInfo['comment_id'] = $id; serendipity_plugin_api::hook_event('frontend_saveComment_finish', $ca, $commentInfo); return true; } else { - log_trackback('discarding comment from DB'); - return false; } }