|
|
@@ -78,10 +78,9 @@ class Zend_Feed_Writer_Extension_Threading_Renderer_Entry
|
|
|
$clink->setAttribute('type', 'text/html');
|
|
|
$clink->setAttribute('href', $link);
|
|
|
$count = $this->getDataContainer()->getCommentCount();
|
|
|
- if (!$count) {
|
|
|
- $count = 0;
|
|
|
+ if (!is_null($count)) {
|
|
|
+ $clink->setAttribute('thr:count', $count);
|
|
|
}
|
|
|
- $clink->setAttribute('thr:count', $count);
|
|
|
$root->appendChild($clink);
|
|
|
}
|
|
|
|
|
|
@@ -104,10 +103,9 @@ class Zend_Feed_Writer_Extension_Threading_Renderer_Entry
|
|
|
$flink->setAttribute('type', 'application/'. $link['type'] .'+xml');
|
|
|
$flink->setAttribute('href', $link['uri']);
|
|
|
$count = $this->getDataContainer()->getCommentCount();
|
|
|
- if (!$count) {
|
|
|
- $count = 0;
|
|
|
+ if (!is_null($count)) {
|
|
|
+ $flink->setAttribute('thr:count', $count);
|
|
|
}
|
|
|
- $flink->setAttribute('thr:count', $count);
|
|
|
$root->appendChild($flink);
|
|
|
}
|
|
|
}
|
|
|
@@ -122,8 +120,8 @@ class Zend_Feed_Writer_Extension_Threading_Renderer_Entry
|
|
|
protected function _setCommentCount(DOMDocument $dom, DOMElement $root)
|
|
|
{
|
|
|
$count = $this->getDataContainer()->getCommentCount();
|
|
|
- if (!$count) {
|
|
|
- $count = 0;
|
|
|
+ if (is_null($count)) {
|
|
|
+ return;
|
|
|
}
|
|
|
$tcount = $this->_dom->createElement('thr:total');
|
|
|
$tcount->nodeValue = $count;
|