Skip to content

Commit

Permalink
updated to only check not null
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Oct 16, 2023
1 parent ca30ea6 commit 6f2c5ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/View/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ public function excerpt(string $string, int $length = 20): string
*/
public function setData(array $data = [], ?string $context = null): RendererInterface
{
if ($context !== null && $context !== '') {
if ($context !== null) {
$data = \esc($data, $context);
}

Expand Down

0 comments on commit 6f2c5ff

Please sign in to comment.