From 6cc3dd4deaa07fa5b6bf4db4db24f3e21fe6a81b Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 16 Oct 2015 14:02:09 +1030 Subject: [PATCH] Prevent crash when no locales are enabled --- framework/core/src/Http/Controller/AbstractClientController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Http/Controller/AbstractClientController.php b/framework/core/src/Http/Controller/AbstractClientController.php index 3288b3898..8caad8c4b 100644 --- a/framework/core/src/Http/Controller/AbstractClientController.php +++ b/framework/core/src/Http/Controller/AbstractClientController.php @@ -157,7 +157,7 @@ abstract class AbstractClientController extends AbstractHtmlController ); if ($localeCompiler) { - $translations = $this->locales->getTranslator()->getMessages()['messages']; + $translations = array_get($this->locales->getTranslator()->getMessages(), 'messages', []); $translations = $this->filterTranslations($translations, $keys);