diff --git a/module/knowledgecenter_update/Views/post_cardform.php b/module/knowledgecenter_update/Views/post_cardform.php index f2bd9f2..51f2197 100644 --- a/module/knowledgecenter_update/Views/post_cardform.php +++ b/module/knowledgecenter_update/Views/post_cardform.php @@ -156,7 +156,6 @@ if ($isNew) { 'id' => 0, // Weitere Felder kannst du hier ggf. ergänzen ]; - $commentCount = 0; $versionCount = 0; $currentVersion = [ 'id' => 0, @@ -199,16 +198,6 @@ if ($isNew) { } - // Anzahl Kommentare ermitteln - $sqlCountComments = "SELECT COUNT(*) AS commentCount FROM topic WHERE knowledgecenter_post_id = $postId"; - $resCountComments = mysqli_query($GLOBALS['mysql_con'], $sqlCountComments); - if ($resCountComments && mysqli_num_rows($resCountComments) > 0) { - $rowCount = mysqli_fetch_assoc($resCountComments); - $commentCount = (int) $rowCount['commentCount']; - } else { - $commentCount = 0; - } - // Anzahl Versionen für die aktuell ausgewählte Sprache ermitteln $sqlCountVersions = "SELECT COUNT(*) AS versionCount FROM knowledgecenter_post_versions WHERE post_id = $postId AND language_id = $languageId"; $resCountVersions = mysqli_query($GLOBALS['mysql_con'], $sqlCountVersions);