From 45dfd55f9fdb393cb5d1d6978a4d63737e3e7f46 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 8 Aug 2023 21:17:44 +0200 Subject: [PATCH] Fix typo This was revealed by PHPStan. --- Feed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Feed.php b/Feed.php index 74167e2..6329532 100644 --- a/Feed.php +++ b/Feed.php @@ -923,7 +923,7 @@ private function makeChannels() $out .= "" . PHP_EOL . "" . PHP_EOL . "" . PHP_EOL; // An image has its own element after the channel elements. - if (array_key_exists('image', $this->data)) + if (array_key_exists('Image', $this->data)) $out .= $this->makeNode('image', $this->data['Image'], array('rdf:about' => $this->data['Image']['url'])); } else if ($this->version == Feed::ATOM) { // ATOM feeds have a unique feed ID. Use the title channel element as key.