From 0b28596669ecc1d97a1a0baeb46327dbc37e6f03 Mon Sep 17 00:00:00 2001 From: Matthias Tylkowski Date: Mon, 19 Nov 2012 16:08:36 +0100 Subject: [PATCH] #2968 getAuthors always returns Collection\Author --- library/Zend/Feed/Reader/Extension/Atom/Entry.php | 4 ++-- library/Zend/Feed/Reader/Extension/Atom/Feed.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/library/Zend/Feed/Reader/Extension/Atom/Entry.php b/library/Zend/Feed/Reader/Extension/Atom/Entry.php index ffc12be0714..37d0bcfae95 100644 --- a/library/Zend/Feed/Reader/Extension/Atom/Entry.php +++ b/library/Zend/Feed/Reader/Extension/Atom/Entry.php @@ -45,7 +45,7 @@ public function getAuthor($index = 0) /** * Get an array with feed authors * - * @return array + * @return Collection\Author */ public function getAuthors() { @@ -73,7 +73,7 @@ public function getAuthors() } if (count($authors) == 0) { - $authors = null; + $authors = new Collection\Author(); } else { $authors = new Collection\Author( Reader\Reader::arrayUnique($authors) diff --git a/library/Zend/Feed/Reader/Extension/Atom/Feed.php b/library/Zend/Feed/Reader/Extension/Atom/Feed.php index 9993610bd28..6519eb35010 100644 --- a/library/Zend/Feed/Reader/Extension/Atom/Feed.php +++ b/library/Zend/Feed/Reader/Extension/Atom/Feed.php @@ -43,7 +43,7 @@ public function getAuthor($index = 0) /** * Get an array with feed authors * - * @return array + * @return Collection\Author */ public function getAuthors() { @@ -65,7 +65,7 @@ public function getAuthors() } if (count($authors) == 0) { - $authors = null; + $authors = new Collection\Author(); } else { $authors = new Collection\Author( Reader\Reader::arrayUnique($authors)