diff --git a/app/Controllers/Admin/Episode.php b/app/Controllers/Admin/Episode.php index 5e25bd00c157787b2b61bb4f92d195616436a25b..e10c40609c244d544d4fbc4630850f282e54cf1c 100644 --- a/app/Controllers/Admin/Episode.php +++ b/app/Controllers/Admin/Episode.php @@ -111,6 +111,7 @@ class Episode extends BaseController 'podcast_id' => $this->podcast->id, 'title' => $this->request->getPost('title'), 'slug' => $this->request->getPost('slug'), + 'guid' => '', 'enclosure' => $this->request->getFile('enclosure'), 'description' => $this->request->getPost('description'), 'image' => $this->request->getFile('image'), diff --git a/app/Entities/Episode.php b/app/Entities/Episode.php index 26f0ee5c27d2186301e064715a65a8cf5c460911..70ab1ed3f0d6f4d81d3b9cceef382e859b3a375f 100644 --- a/app/Entities/Episode.php +++ b/app/Entities/Episode.php @@ -199,7 +199,7 @@ class Episode extends Entity ); } - public function setGuid($guid = null) + public function setGuid(string $guid) { return $this->attributes['guid'] = empty($guid) ? $this->getLink()