Skip to content

Commit 6f2c5ff

Browse files
committed
updated to only check not null
1 parent ca30ea6 commit 6f2c5ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/View/View.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ public function excerpt(string $string, int $length = 20): string
336336
*/
337337
public function setData(array $data = [], ?string $context = null): RendererInterface
338338
{
339-
if ($context !== null && $context !== '') {
339+
if ($context !== null) {
340340
$data = \esc($data, $context);
341341
}
342342

0 commit comments

Comments
 (0)