Skip to content

Commit

Permalink
Merge pull request #29412 from eileenmcnaughton/no_clear
Browse files Browse the repository at this point in the history
Remove (unreachable) call to clearAssign
  • Loading branch information
eileenmcnaughton authored Feb 16, 2024
2 parents 8b228b5 + b3bb840 commit 441f495
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions CRM/Core/Smarty.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,7 @@ public function clearTemplateVars(): void {
if ($key === 'config' || $key === 'session') {
continue;
}
if (method_exists($this, 'clearAssign')) {
$this->clearAssign($key);
}
else {
$this->clear_assign($key);
}
$this->clearAssign($key);
}
}

Expand Down

0 comments on commit 441f495

Please sign in to comment.