Skip to content

Commit

Permalink
Fixed null deprecation in lib/Varien/Filter/Template.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kiatng committed Mar 7, 2024
1 parent 304a23c commit 98c299c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Varien/Filter/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ public function getIncludeProcessor()
*/
public function filter($value)
{
if ($value === null) {
return '';
}

// "depend" and "if" operands should be first
$directives = [
self::CONSTRUCTION_DEPEND_PATTERN => 'dependDirective',
Expand Down

0 comments on commit 98c299c

Please sign in to comment.