Skip to content

Commit 4ed0391

Browse files
Ensure null values are not passed to trim() (#2889)
1 parent 829daf0 commit 4ed0391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ public function getBackendTable()
627627
if ($this->isStatic()) {
628628
$this->_dataTable = $this->getEntityType()->getValueTablePrefix();
629629
} else {
630-
$backendTable = trim($this->_getData('backend_table'));
630+
$backendTable = trim((string)$this->_getData('backend_table'));
631631
if (empty($backendTable)) {
632632
$entityTable = [$this->getEntity()->getEntityTablePrefix(), $this->getBackendType()];
633633
$backendTable = $this->getResource()->getTable($entityTable);

0 commit comments

Comments
 (0)