summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-01 20:55:08 +0400
committerAndrew Dolgov <[email protected]>2013-05-01 20:55:08 +0400
commitd4992d6b48ed458ae3ff39c5cd5ac19244ccd6a8 (patch)
treefa9dcf17ff825b3304a94aba34dc559c3b45a13d /include
parentee78f81ccdcc12055927a708e31ab0a85442b27b (diff)
add support for dc:subject and slash:comments
Diffstat (limited to 'include')
-rw-r--r--include/rssfuncs.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index d1175a303..f342bf7f1 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -581,13 +581,7 @@
$entry_comments = db_escape_string(mb_substr(trim($entry_comments), 0, 245));
$entry_author = db_escape_string(mb_substr(trim($entry_author), 0, 245));
- $num_comments = $item->get_comments_count();
-
- if (is_array($num_comments) && is_array($num_comments[0])) {
- $num_comments = (int) $num_comments[0]["data"];
- } else {
- $num_comments = 0;
- }
+ $num_comments = (int) $item->get_comments_count();
_debug("author $entry_author", $debug_enabled);
_debug("num_comments: $num_comments", $debug_enabled);