1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-15 11:14:12 +02:00
This commit is contained in:
Ryan Cramer
2022-03-04 10:05:41 -05:00
parent 9912951d2b
commit 4b38a649bf

View File

@@ -142,7 +142,7 @@ class ProcessLanguageTranslator extends Process {
$out = ''; $out = '';
foreach(array('language_files', 'language_files_site') as $fieldName) { 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)) { if(count($this->language->$fieldName)) {
$table->headerRow(array( $table->headerRow(array(
$this->_x('file', 'table-header'), $this->_x('file', 'table-header'),