From 4b38a649bf18384b3a71c181e7cf5a094d8dbf4e Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 4 Mar 2022 10:05:41 -0500 Subject: [PATCH] Fix issue processwire/processwire-issues#1517 --- wire/modules/LanguageSupport/ProcessLanguageTranslator.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/modules/LanguageSupport/ProcessLanguageTranslator.module b/wire/modules/LanguageSupport/ProcessLanguageTranslator.module index f0017fdf..8c23f1b5 100644 --- a/wire/modules/LanguageSupport/ProcessLanguageTranslator.module +++ b/wire/modules/LanguageSupport/ProcessLanguageTranslator.module @@ -142,7 +142,7 @@ class ProcessLanguageTranslator extends Process { $out = ''; foreach(array('language_files', 'language_files_site') as $fieldName) { - if(!$this->language->$fieldName) continue; // language_files_site not installed + if(!$this->language || !$this->language->$fieldName) continue; // language_files_site not installed if(count($this->language->$fieldName)) { $table->headerRow(array( $this->_x('file', 'table-header'),