From c83bfa91c3416de51b966fc89c881ee9b503a4d4 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 31 Oct 2016 11:47:32 +0100 Subject: [PATCH] Fixed return types Closes #2122 --- .../lib/system/message/quote/MessageQuoteManager.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php b/wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php index 406b0ca390..d381f1592a 100644 --- a/wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php +++ b/wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php @@ -231,11 +231,11 @@ class MessageQuoteManager extends SingletonFactory { * Returns an array containing the quote author, link and text. * * @param string $quoteID - * @return string[] + * @return string[]|false */ public function getQuoteComponents($quoteID) { if ($this->getQuote($quoteID, false) === null) { - return ''; + return false; } // find the quote and simulate a regular call to render quotes @@ -257,6 +257,8 @@ class MessageQuoteManager extends SingletonFactory { } } } + + return false; } /** -- 2.20.1