Skip to content

Commit e2e738a

Browse files
authored
Fixed stripTags() null deprecation. (#3729)
1 parent 1db9869 commit e2e738a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/code/core/Mage/Core/Helper/Abstract.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ function ($matches) {
250250
*/
251251
public function stripTags($data, $allowableTags = null, $escape = false)
252252
{
253+
if ($data === null) {
254+
return '';
255+
}
253256
$result = strip_tags($data, $allowableTags);
254257
return $escape ? $this->escapeHtml($result, $allowableTags) : $result;
255258
}

0 commit comments

Comments
 (0)