Fixed return types
authorAlexander Ebert <ebert@woltlab.com>
Mon, 31 Oct 2016 10:47:32 +0000 (11:47 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 31 Oct 2016 10:47:32 +0000 (11:47 +0100)
Closes #2122

wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php

index 406b0ca390dd5dd44e6618b88beff193a9e92856..d381f1592acc801f40c108cdca860b3ee1fffb4c 100644 (file)
@@ -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;
        }
        
        /**