Blog system enhancements: fix publish/unpublish permissions, add action buttons to blog listings, update gallery to show only published blog images, improve blog card layout and description truncation
This commit is contained in:
@@ -2064,7 +2064,7 @@ function getCommentCount($page_id) {
|
||||
|
||||
// Prepare statement to avoid SQL injection
|
||||
$stmt = $conn->prepare("SELECT COUNT(*) FROM comments WHERE page_id = ?");
|
||||
$stmt->bind_param("i", $page_id);
|
||||
$stmt->bind_param("s", $page_id);
|
||||
$stmt->execute();
|
||||
|
||||
// Get result
|
||||
|
||||
Reference in New Issue
Block a user