From 64df30c9aae37b6f205d1e5de54bfafd64cba53e Mon Sep 17 00:00:00 2001 From: blackcoder87 Date: Thu, 26 Oct 2023 18:18:45 +0200 Subject: [PATCH] Guestbook: Fix error when manually approving new entry --- .../modules/guestbook/config/config.php | 2 +- .../modules/guestbook/models/Entry.php | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/application/modules/guestbook/config/config.php b/application/modules/guestbook/config/config.php index 1f772338c..dc396f44e 100644 --- a/application/modules/guestbook/config/config.php +++ b/application/modules/guestbook/config/config.php @@ -10,7 +10,7 @@ class Config extends \Ilch\Config\Install { public $config = [ 'key' => 'guestbook', - 'version' => '1.13.0', + 'version' => '1.13.1', 'icon_small' => 'fa-solid fa-book', 'author' => 'Stantin, Thomas', 'link' => 'https://ilch.de', diff --git a/application/modules/guestbook/models/Entry.php b/application/modules/guestbook/models/Entry.php index 6aecec2f1..daeee86c4 100644 --- a/application/modules/guestbook/models/Entry.php +++ b/application/modules/guestbook/models/Entry.php @@ -70,9 +70,9 @@ public function getId(): ?int /** * Gets the email of the entry. * - * @return string + * @return string|null */ - public function getEmail(): string + public function getEmail(): ?string { return $this->email; } @@ -80,9 +80,9 @@ public function getEmail(): string /** * Gets the text of the entry. * - * @return string + * @return string|null */ - public function getText(): string + public function getText(): ?string { return $this->text; } @@ -90,9 +90,9 @@ public function getText(): string /** * Gets the name of the entry. * - * @return string + * @return string|null */ - public function getName(): string + public function getName(): ?string { return $this->name; } @@ -100,9 +100,9 @@ public function getName(): string /** * Gets the homepage of the entry. * - * @return string + * @return string|null */ - public function getHomepage(): string + public function getHomepage(): ?string { return $this->homepage; } @@ -110,9 +110,9 @@ public function getHomepage(): string /** * Gets the datetime of the entry. * - * @return string + * @return string|null */ - public function getDatetime(): string + public function getDatetime(): ?string { return $this->datetime; }