Skip to content

Commit

Permalink
Ensure null values are not passed to trim() (#2889)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdavenport authored and fballiano committed Jan 3, 2023
1 parent 63d31e7 commit 238851d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ public function getBackendTable()
if ($this->isStatic()) {
$this->_dataTable = $this->getEntityType()->getValueTablePrefix();
} else {
$backendTable = trim($this->_getData('backend_table'));
$backendTable = trim((string)$this->_getData('backend_table'));
if (empty($backendTable)) {
$entityTable = [$this->getEntity()->getEntityTablePrefix(), $this->getBackendType()];
$backendTable = $this->getResource()->getTable($entityTable);
Expand Down

0 comments on commit 238851d

Please sign in to comment.