From aba05c14382dec4301b5956e30fc8ebb77cde26e Mon Sep 17 00:00:00 2001 From: kiCkZ Date: Thu, 22 Aug 2019 20:49:15 +0200 Subject: [PATCH] Fix returned value in translate function --- src/Translator.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Translator.php b/src/Translator.php index 002bdf6f..8fd112b3 100644 --- a/src/Translator.php +++ b/src/Translator.php @@ -137,8 +137,7 @@ public function translate($message, ...$arg): string $locale = isset($arg[3]) ? $arg[3] : NULL; if (empty($message)) { - return $message; - + return ''; } elseif ($message instanceof NetteHtmlString || $message instanceof LatteHtmlString) { $this->logMissingTranslation($message->__toString(), $domain, $locale); return (string) $message; // what now?