Here's the function that gets called
function comment_link($news_ID) {
global $TBL_COMMENTS, $COMMENTS_ENABLED;
if ($COMMENTS_ENABLED == 1) {
$operator_comments = new DBEngine;
$operator_comments->execute("SELECT * FROM " . $TBL_COMMENTS . " ORDER BY comment_ID asc");
$comment_count = $operator_comments->countrows();
if ($comment_count == 1) {
$comment_link_string = "1 Comment";
} else {
$comment_link_string = "" . $comment_count . "Comments";
}
echo $comment_link_string;
}
}
And here's the foreach loop that it breaks
There aren't any posts!