From ab4676c4b7ff407469b15ec61b79b2b30eff58a9 Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Tue, 14 Jan 2020 12:36:24 -0500 Subject: [PATCH] Locales tag pair outputs nothing if there's no data (eg. on a 404) - Closes #1135 --- src/Tags/Locales.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Tags/Locales.php b/src/Tags/Locales.php index f2b88857a0..cb6674125d 100644 --- a/src/Tags/Locales.php +++ b/src/Tags/Locales.php @@ -21,6 +21,10 @@ class Locales extends Tags */ public function index() { + if (! $this->getData()) { + return ''; + } + return $this->getLocales(); }