diff --git a/core/src/Revolution/modElement.php b/core/src/Revolution/modElement.php index 3df81a9904..9b61e9ea3d 100644 --- a/core/src/Revolution/modElement.php +++ b/core/src/Revolution/modElement.php @@ -162,7 +162,8 @@ public function get($k, $format = null, $formatTemplate = null) } $this->xpdo->lexicon->load($property['lexicon']); } - $property['desc_trans'] = $this->xpdo->lexicon($property['desc']); + $desc = $property['desc'] ?? ''; + $property['desc_trans'] = $desc !== '' ? $this->xpdo->lexicon($desc) : ''; $property['area'] = !empty($property['area']) ? $property['area'] : ''; $property['area_trans'] = !empty($property['area']) ? $this->xpdo->lexicon($property['area']) : ''; diff --git a/core/src/Revolution/modPropertySet.php b/core/src/Revolution/modPropertySet.php index 3af5fb40a8..3fd1a756f8 100644 --- a/core/src/Revolution/modPropertySet.php +++ b/core/src/Revolution/modPropertySet.php @@ -75,7 +75,8 @@ public function get($k, $format = null, $formatTemplate = null) } $this->xpdo->lexicon->load($property['lexicon']); } - $property['desc_trans'] = $this->xpdo->lexicon($property['desc']); + $desc = $property['desc'] ?? ''; + $property['desc_trans'] = $desc !== '' ? $this->xpdo->lexicon($desc) : ''; $property['area'] = !empty($property['area']) ? $property['area'] : ''; if (!empty($property['options'])) {