Issues

ZF-11150: setCommentCount() doesn't allow 0

Description

Hi,

In the class Zend_Feed_Writer_Entry, the function setCommentCount() returns an exception if $count is empty... so it returns an exception when set to 0, which is a perfectly good comment count, don't you think? :)


    public function setCommentCount($count)
    {
        if (empty($count) || !is_numeric($count) || (int) $count < 0) {

should be replaced with


    public function setCommentCount($count = 0)
    {
        if (!is_numeric($count) || (int) $count < 0) {

Comments

Fixed in trunk r23909

Merged to release branch 1.11 r23965